mirror of https://github.com/adamdruppe/arsd.git
Extract SQLITE_INTEGER as 64-bit int.
Downcasting to 32-bit should be lossless for 32-bit fields.
This commit is contained in:
parent
ba4c0ea13a
commit
43b05da92a
3
sqlite.d
3
sqlite.d
|
@ -325,7 +325,7 @@ struct Statement {
|
||||||
Variant v;
|
Variant v;
|
||||||
final switch(sqlite3_column_type(s, a)){
|
final switch(sqlite3_column_type(s, a)){
|
||||||
case SQLITE_INTEGER:
|
case SQLITE_INTEGER:
|
||||||
v = sqlite3_column_int(s, a);
|
v = sqlite3_column_int64(s, a);
|
||||||
break;
|
break;
|
||||||
case SQLITE_FLOAT:
|
case SQLITE_FLOAT:
|
||||||
v = sqlite3_column_double(s, a);
|
v = sqlite3_column_double(s, a);
|
||||||
|
@ -730,6 +730,7 @@ void *sqlite3_column_blob(sqlite3_stmt*, int iCol);
|
||||||
int sqlite3_column_bytes(sqlite3_stmt*, int iCol);
|
int sqlite3_column_bytes(sqlite3_stmt*, int iCol);
|
||||||
double sqlite3_column_double(sqlite3_stmt*, int iCol);
|
double sqlite3_column_double(sqlite3_stmt*, int iCol);
|
||||||
int sqlite3_column_int(sqlite3_stmt*, int iCol);
|
int sqlite3_column_int(sqlite3_stmt*, int iCol);
|
||||||
|
long sqlite3_column_int64(sqlite3_stmt*, int iCol);
|
||||||
char *sqlite3_column_text(sqlite3_stmt*, int iCol);
|
char *sqlite3_column_text(sqlite3_stmt*, int iCol);
|
||||||
int sqlite3_column_type(sqlite3_stmt*, int iCol);
|
int sqlite3_column_type(sqlite3_stmt*, int iCol);
|
||||||
char *sqlite3_column_name(sqlite3_stmt*, int N);
|
char *sqlite3_column_name(sqlite3_stmt*, int N);
|
||||||
|
|
Loading…
Reference in New Issue