I want to migrate my mulit-tier application with Paradox/BDE to Oracle/Zeos. So to test the components I created a table "test" :
Code: Select all
CREATE TABLE TestTW (
NumTest NUMBER(8,0) NOT NULL,
NomTest VARCHAR2(45) default NULL,
DateTimeTest TIMESTAMP default NULL,
DateTest DATE default NULL,
TimeTest TIMESTAMP default NULL,
SmallIntTest SMALLINT default NULL,
MemoTest CLOB default NULL,
BlobTest BLOB default NULL,
DecimalTest DECIMAL default NULL,
NumericTest NUMERIC default NULL
)
- 1 TZConnection
- 1 TZTable
- 1 TDataSetProvider
- 1 TClientDataSet
- 1 TDataSource
- 1 TDBGrid
- 1 TDBNavigator
I "imported" all fields in my TClientDataSet :
Code: Select all
CdtTestZeosNUMTEST: TIntegerField;
CdtTestZeosNOMTEST: TStringField;
CdtTestZeosDATETIMETEST: TDateTimeField;
CdtTestZeosDATETEST: TDateField;
CdtTestZeosTIMETEST: TDateTimeField;
CdtTestZeosSMALLINTTEST: TLargeintField;
CdtTestZeosMEMOTEST: TMemoField;
CdtTestZeosBLOBTEST: TBlobField;
CdtTestZeosDECIMALTEST: TLargeintField;
CdtTestZeosNUMERICTEST: TLargeintField;
Code: Select all
CdtTestZeos.Open
But when I tried to insert (when I post with the navigator) it throw a reconcilerror : ORA-00923
I puted a TZSQLMonitor and it display this :
Code: Select all
2009-02-10 17:12:56 cat: Connect, proto: oracle-9i, msg: CONNECT TO "XE" AS USER "test"
2009-02-10 17:12:56 cat: Execute, proto: oracle-9i, msg: SET TRANSACTION ISOLATION LEVEL DEFAULT
2009-02-10 17:12:56 cat: Execute, proto: oracle-9i, msg: END TRANSACTION
2009-02-10 17:12:56 cat: Execute, proto: oracle-9i, msg: SET TRANSACTION ISOLATION LEVEL DEFAULT
2009-02-10 17:12:57 cat: Execute, proto: oracle-9i, msg: SELECT * FROM TEST.TESTTW
2009-02-10 17:12:57 cat: Execute, proto: oracle-9i, msg: SELECT * FROM TEST.TESTTW
2009-02-10 17:12:57 cat: Execute, proto: oracle-9i, msg: SELECT NULL, OWNER, TABLE_NAME, COLUMN_NAME, NULL, DATA_TYPE, DATA_LENGTH, NULL, DATA_PRECISION, DATA_SCALE, NULLABLE, NULL, DATA_DEFAULT, NULL, NULL, NULL, COLUMN_ID, NULLABLE FROM SYS.ALL_TAB_COLUMNS WHERE OWNER LIKE 'TEST' AND TABLE_NAME LIKE 'TESTTW' AND COLUMN_NAME LIKE '%'
2009-02-10 17:13:05 cat: Execute, proto: oracle-9i, msg: SELECT * FROM TEST.TESTTW
2009-02-10 17:13:05 cat: Execute, proto: oracle-9i, msg: SELECT * FROM TEST.TESTTW
2009-02-10 17:13:05 cat: Execute, proto: oracle-9i, msg: SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
, errcode: 923, error: ORA-00923: mot-clé FROM absent à l'emplacement prévu
2009-02-10 17:13:09 cat: Disconnect, proto: oracle-9i, msg: DISCONNECT FROM "XE"
It seems that the query generated is incomplete but I dont know why....
Did I configure components in the right way ?