[sqlite] sqlite3_db_filename returns an empty string when null pointer is promised

2019-03-13 Thread Alex Alabuzhev
Hi, https://www.sqlite.org/c3ref/db_filename.html: > If there is no attached database N on the database connection D, or if database N is a temporary or in-memory database, then a NULL pointer is returned. However, when called for :memory: db the function actually returns "". Looking at the

[sqlite] rand_s and Windows 2000

2016-06-17 Thread Alex Alabuzhev
Hi guys, SQlite 3.12 and newer uses rand_s in winRandomness() implementation. rand_s depends on RtlGenRandom API (aka Advapi32.dll::SystemFunction036), which is only available