AHK-just-me / Class_SQLiteDB

AHK SQLite API wrapper class
The Unlicense
105 stars 30 forks source link

[AHKv2] GetTable and NULL values #4

Open kczx3 opened 5 years ago

kczx3 commented 5 years ago

Hi there! 👋

I am using this class with a few tweaks in AHK v2. I have an example DB where some rows have NULL in some columns. The code here appears to fail within GetTable though.

It seems that NumGet(Table+0, Offset, "UPtr") is returning 0 for a column with a value of NULL and StrGet fails with "Parameter #1 is not valid" in AHK v2. Wondering if you had thoughts why. Is this just because v2 has more strict type checking for parameters?

e-volusian commented 5 years ago

@kczx3 can you share your v2 script? I can't find either in this repo or ahk forums.

Disregard. I see your script at https://github.com/kczx3/SQLiteViewer/blob/master/lib/Class_SQLiteDB.ahk