Search found 93 matches

by guidoaerts
18.05.2010, 10:09
Forum: Firebird
Topic: AutoInc (Firebird)
Replies: 11
Views: 4228

that's right, as the ZTable component doesn't know the value of the autoincrement field of the record that was added, is has to refresh the data to retrieve the inserted value. the new record has to be posted without a value for the autoincrement field when working with a TDBGrid, for example.
by guidoaerts
17.05.2010, 11:15
Forum: Firebird
Topic: AutoInc (Firebird)
Replies: 11
Views: 4228

autoincrement works fine with fb and zeos in firebird you create a generator and a trigger: for e.g. table 'acties' and autoincrement field 'idnummer' (with unique index): (SET TERM ^; ) CREATE GENERATOR "GEN_ACTIES_IDNUMMER"^ SET GENERATOR "GEN_ACTIES_IDNUMMER" TO 0^ CREATE TRIG...
by guidoaerts
12.05.2010, 19:33
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

seawolf, with lazarus and fb 2.1.2 and zeos 6.6.5 I couldn't open a resultset without the change, so insert with returning did not work, just because the insert statement is executed with FRowsAffected := Statement.ExecuteUpdatePrepared; which does not fetch a resultset. ZQuery.Open does not work ei...
by guidoaerts
12.05.2010, 11:08
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

Mark,
concerning the test suite : I found the buildingtests.pdf in the doc subdir of zeos665. I have no delphi license (only delphi 2), so I suppose I cannot set up the test suite. Unless there is a port to Lazarus?
Guido
by guidoaerts
03.05.2010, 12:21
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

You are probably right about the memory leak, FResultset isn't freed nor nilled in TZAbstractRODataset, but maybe that might be solved in the destructor with an if<>nil. On the other hand, in ZDbcInterbase6ResultSet.pas, line 139 [quote] { TZInterbase6ResultSet } {** Releases this <code>ResultSet</c...
by guidoaerts
01.05.2010, 17:07
Forum: Firebird
Topic: FB did not updated without "Reconnect"
Replies: 7
Views: 869

no idea, don't know anything about oracle
(and almost nothing about firebird, to be honest)
by guidoaerts
01.05.2010, 17:03
Forum: 6.6 - stable
Topic: Invalid Request BLR
Replies: 15
Views: 1675

ok, before you executedirect() you should make the connection with
Connect_DB.connect;
by guidoaerts
30.04.2010, 18:14
Forum: 6.6 - stable
Topic: Invalid Request BLR
Replies: 15
Views: 1675

try Connect_DB.ExecuteDirect() instead of ZConnection.ExecuteDirect()
guido
by guidoaerts
30.04.2010, 18:05
Forum: Firebird
Topic: FB did not updated without "Reconnect"
Replies: 7
Views: 869

defining an sql string by means of DateTimeToStr() is tricky.
better is passing datetime as parameter
guido
by guidoaerts
30.04.2010, 15:39
Forum: 6.6 - stable
Topic: TZQuery events - when they're running ?
Replies: 7
Views: 844

well, you're right, it happens on the server, but zeos checks for errors an passes them through ; I tried it ( zeos 6.6.5; lazarus 0.9.26.2, xp) i get a dialog with : SQL error : conversion error from string "31/04/2010". Error code : -413. Overflow occured during data type conversion. (.....
by guidoaerts
30.04.2010, 12:59
Forum: ZeosLib 7.0 Beta Forum
Topic: Problems with DBGrid
Replies: 9
Views: 1290

after all, after the editing the records are sorted on field1, but in descending order (r,p,h,g).... before the editing, the records are not sorted on field1 (r,g,h,p)
isn't that what is should do?
guido
by guidoaerts
30.04.2010, 10:57
Forum: 6.6 - stable
Topic: TZQuery events - when they're running ?
Replies: 7
Views: 844

In any case there must be a conversion of string to datetime that will raise an exception...
guido
by guidoaerts
30.04.2010, 08:02
Forum: 6.6 - stable
Topic: Invalid Request BLR
Replies: 15
Views: 1675

akli_agha,
No, you have to put your sql in the ExecuteDirect('string'), not in the 'properties'. It is implemented as a executeUpdate statement, returning an integer representing the number of affected rows.
guido
by guidoaerts
28.04.2010, 19:27
Forum: Firebird
Topic: AutoInc (Firebird)
Replies: 11
Views: 4228

signals,
you should give some more information. what is the table definition, how do you insert, which platform, what versions?...
guido
by guidoaerts
24.04.2010, 15:55
Forum: 6.6 - stable
Topic: Zquery handle EDatabaseError
Replies: 4
Views: 748

Dewie,
you can assign any procedure that handles exceptions to the
application.onexception property

Guido