acl-dev / acl

C/C++ server and network library, including coroutine,redis client,http/https/websocket,mqtt, mysql/postgresql/sqlite client with C/C++ for Linux, Android, iOS, MacOS, Windows, etc..
https://acl-dev.cn
GNU Lesser General Public License v3.0
2.84k stars 937 forks source link

SQLite查询数据库时,如果text类型的项为空,会直接导致异常 #255

Closed liangrf closed 2 years ago

zhengshuxin commented 2 years ago

麻烦提供一下测试用例。

liangrf commented 2 years ago

麻烦提供一下测试用例。

sqlite新建一个表,表中一项为Text类型,插入数据时不给这项插入,查询时就会出现。

zhengshuxin commented 2 years ago

问题应该修复了,针对建表时未指定缺省值时插入数据的异常(不给该项加数据),内部增加了判空机制以防止异常。