Skip to content

Commit f9c0b6f

Browse files
committed
fix: disallow bigints
1 parent 09d9159 commit f9c0b6f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

package/cpp/operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ SQLiteExecuteQueryResult sqliteExecute(const std::string& dbName, const std::str
165165
switch (column_type) {
166166

167167
case SQLITE_INTEGER: {
168-
auto column_value = sqlite3_column_int64(statement, i);
168+
auto column_value = sqlite3_column_double(statement, i);
169169
row[column_name] = column_value;
170170
break;
171171
}

package/src/types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ export enum ColumnType {
2929
/**
3030
* Represents a value that can be stored in a SQLite database
3131
*/
32-
export type SQLiteValue =
33-
| boolean
34-
| number
35-
| bigint
36-
| string
37-
| ArrayBuffer
38-
| undefined
32+
export type SQLiteValue = boolean | number | string | ArrayBuffer | undefined
3933

4034
export type SQLiteItem = Record<string, SQLiteValue>
4135

0 commit comments

Comments
 (0)