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: 786
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.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1935
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