Nullpointer AV when changing dataset's SQL design time

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 797
Joined: 18.11.2018, 17:37
Location: Hungary

Nullpointer AV when changing dataset's SQL design time

Post by aehimself »

I have an application with the standard setup... SQLConnection -> Dataset -> Datasource -> DBGrid. I wanted to add a field to the query and I was greeted with an AV.
The reason why it happens is I'm setting up the SQLConnection runtime, so design time it's empty and ZSQLStrings attempted to get the connections drivers tokenizer. But there's no driver.

I sent a patch for it on GitHub.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Nullpointer AV when changing dataset's SQL design time

Post by marsupilami »

Hello aehimself,

I applied the patch. Thank you and best regards,

Jan
Post Reply