Composite Type + UnpreparedExecute => Exceptions and AV's
Posted: Thu 19 Sep 2013 10:10
Hy,
we have some trouble with Composite Types in unprepared Mode. We just acutalized to the current version.
In Delphi => PgQuery => set Propertie "Options=>UnpreparedExecute" to true.
We do this because we often use temporary querys, that are created before and destroyed after execution.
Set of NonStandard Properties: FullRefresh=True, OIDasInt=True, RemoveOnRefresh=False, SetFieldsReadOnly=False, StrictUpdate=False, UnknownAsString=True, UnpreparedExecute=True
Connect to a DataBase and a DBGrid.
TestCases:
A Error with Varchar
"SELECT * FROM test" => Working fine. Change Column "c.b" is Working "c.a" is Failing.
"Cannot Convert Type" in "PgObjects.pas"
B Error with Date
SELECT is working as long as there is no Record. Insert and Update are Working.
Select and Refresh (or Reopen) if there are Records failing => AV "Variant of Type Unicode could not convert to Double"
we have some trouble with Composite Types in unprepared Mode. We just acutalized to the current version.
In Delphi => PgQuery => set Propertie "Options=>UnpreparedExecute" to true.
We do this because we often use temporary querys, that are created before and destroyed after execution.
Set of NonStandard Properties: FullRefresh=True, OIDasInt=True, RemoveOnRefresh=False, SetFieldsReadOnly=False, StrictUpdate=False, UnknownAsString=True, UnpreparedExecute=True
Connect to a DataBase and a DBGrid.
TestCases:
A Error with Varchar
Code: Select all
DROP TABLE IF EXISTS test;
DROP TYPE IF EXISTS testtype;
CREATE TYPE testtype AS (a VARCHAR, b INTEGER);
CREATE TABLE test (c TESTTYPE);
"Cannot Convert Type" in "PgObjects.pas"
B Error with Date
Code: Select all
DROP TABLE IF EXISTS test;
DROP TYPE IF EXISTS testtype;
CREATE TYPE testtype AS (a DATE, b DATE);
CREATE TABLE test (c TESTTYPE);
Select and Refresh (or Reopen) if there are Records failing => AV "Variant of Type Unicode could not convert to Double"