Subject | Re: [ib-support] PROBLEM SELECTING DATE COLUMNS |
---|---|
Author | Helen Borrie |
Post date | 2002-02-28T09:05:30Z |
At 08:18 AM 28-02-02 +0000, you wrote:
to connect to a Firebird database? Check the version no. of gds32.dll in
your system directory and see whether it matches the server.
HB.
All for Open and Open for All
Firebird Open SQL Database ยท http://firebirdsql.org
_______________________________________________________
>A simple select raises this everytime. The problem only occurs when IOne comes to mind - are you using an Interbase 5 or 4 version of gds32.dll
>select
>the date columns, if left out, it is ok. I am using the latest binary
>for
>Windows and have tried different front ends with the same result.
>
>ISC ERROR MESSAGE: Dynamic SQL Error SQL error code = -804 Incorrect
>values
>within SQLDA structure
>
>Here is the query:
>
>SELECT
>po.ORDERID,po.PURCHASEORDERNO,po.ORDERDATE,po.REQUESTEDRECEIPTDATE,
>po.VENDORID,po.WAREHOUSEID,po.CARRIERID,po.FRTPAYMENTMETHOD,po.ORDERST
>ATUS,p
>o.COMMENTS,
>po.ORDERAMOUNT
>from PORDER po
>order by po.PURCHASEORDERNO
>
>
>Here is the table structure:
>
>CREATE TABLE PORDER
>(
> ORDERID INTEGER NOT NULL,
> PURCHASEORDERNO VARCHAR( 11),
> ORDEREDBY VARCHAR( 11),
> ORDERDATE DATE,
> REQUESTEDRECEIPTDATE DATE,
> VENDORID INTEGER,
> WAREHOUSEID INTEGER,
> CARRIERID INTEGER,
> FRTPAYMENTMETHOD SMALLINT,
> ORDERSTATUS SMALLINT,
> PRINTED SMALLINT,
> COMMENTS BLOB SUB_TYPE 1,
> ORDERAMOUNT NUMERIC( 8, 2) DEFAULT 0,
> NUMBEROFRECEIPTS INTEGER DEFAULT 0,
> CONSTRAINT PK_PORDER PRIMARY KEY (ORDERID)
>)
>
>
>It works if you do not select these date columns:
>ORDERDATE,
>REQUESTEDRECEIPTDATE
>
>
>Any ideas??
to connect to a Firebird database? Check the version no. of gds32.dll in
your system directory and see whether it matches the server.
HB.
All for Open and Open for All
Firebird Open SQL Database ยท http://firebirdsql.org
_______________________________________________________