Skip to content

Commit

Permalink
Clear columnTypeCache when stepping to a new row. (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-brass authored Mar 1, 2022
1 parent 7c610bd commit ef8a483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/statement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ export class PreparedStatement {
*/
step(): Row | undefined {
if (sqlite3_step(this.#db.unsafeRawHandle, this.#handle) === SQLITE3_ROW) {
this.#colTypeCache.clear();
return this.row;
}
}
Expand Down

0 comments on commit ef8a483

Please sign in to comment.