1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

Add DBI SQL_BOOLEAN type as alias for SQLITE_INTEGER

According to SQLite documentation, boolean values are stored as integers:
https://www.sqlite.org/datatype3.html#boolean_datatype
This commit is contained in:
Pali 2019-08-16 15:27:48 +02:00
parent 583b5b131e
commit 6cffbab90e

View file

@ -214,6 +214,7 @@ sqlite_type_from_odbc_type(int type)
switch(type) {
case SQL_UNKNOWN_TYPE:
return SQLITE_NULL;
case SQL_BOOLEAN:
case SQL_INTEGER:
case SQL_SMALLINT:
case SQL_TINYINT: