Is there any parameter to be set that clears cache after dataset is closed?Thats why the STMT is prepared and cached too. One of the performance goals. Simply close the DataSets which accessing the changed table. After your changes are done, the Cache is cleared you can reopen them again. We do NOT cache the Stmts it's selves in a list or so (for updates i'm doing this btw.).
The more i wonder why PG allows doing such things while prepared smts are active and compiled to use such objects!
I use
Code: Select all
ZQuery1->Active = false;
ZQuery1->Active = true;
Prepared statements are cached by PG itself, so when i use SQL like: select * from table
and then i change it's structure - resultset is changed and postgres raises exception.
I just got brilliant idea , and changed code to:
Code: Select all
ZQuery1->Active = false;
ZQuery1->Unprepare();
ZQuery1->Active = true;
I've always thought that randomly altering DB structure is postgres best practice;)i'm starting from the premisse you know what dou are doing, Marek.
But, with full seriusness i had few queries that were on "live changing" table in previous application, but it was all working on zeos 7.0 with only emulated statements
Michael - you are right, Zeos will not have solution for everything - it's not the goal of library.
Ability of clearing selected portion of cache would be nice feature:)