ZTable.InsertRecord fails without error XE7
ZTable.InsertRecord fails without error XE7
Inserting a record results in no record added. No error message.
The exact same code works in XE2.
No idea about the versions of Delphi between the two.
I'm using 7.1.4.
Tried this with both Firebird embedded and MariaDB, so I think it's a ZEOS bug.
The exact same code works in XE2.
No idea about the versions of Delphi between the two.
I'm using 7.1.4.
Tried this with both Firebird embedded and MariaDB, so I think it's a ZEOS bug.
Re: ZTable.InsertRecord fails without error XE7
@amarryat,
Try to work with ZEOS 7.2 Revision3609.
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
In my opinion in XE7 it should work.
http://zeoslib.sourceforge.net/viewtopi ... 485#p37485
Michal
Try to work with ZEOS 7.2 Revision3609.
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/
In my opinion in XE7 it should work.
http://zeoslib.sourceforge.net/viewtopi ... 485#p37485
Michal
Last edited by miab3 on 30.01.2015, 09:09, edited 2 times in total.
Re: ZTable.InsertRecord fails without error XE7
Is there an easy way to download those files?
I can click on them in the browser and they open up there, but is there a way to download the source?
I can click on them in the browser and they open up there, but is there a way to download the source?
Re: ZTable.InsertRecord fails without error XE7
@amarryat,
Any svn client.
For example, TortoiseSVN.
Michal
Sure.amarryat wrote:Is there an easy way to download those files?
Any svn client.
For example, TortoiseSVN.
Michal
Re: ZTable.InsertRecord fails without error XE7
Thank you!
I'll try it out and report back...
I'll try it out and report back...
Re: ZTable.InsertRecord fails without error XE7
@amarryat,
You can also try "Download Snapshot" from:
http://sourceforge.net/p/zeoslib/code-0 ... sting-7.2/
ZEOS 7.2 (currently r3609) is a faster and corrected version ZEOS 7.1.4.
Michal
You can also try "Download Snapshot" from:
http://sourceforge.net/p/zeoslib/code-0 ... sting-7.2/
ZEOS 7.2 (currently r3609) is a faster and corrected version ZEOS 7.1.4.
Michal
Re: ZTable.InsertRecord fails without error XE7
Thanks - I grabbed the snapshot and installed it without any problems.
However this error hasn't been fixed. ZTable.InsertRecord still fails to insert a record, and doesn't report an error.
In addition, the deprecation warnings in ZComponent are still there. In ZAbstractRODataset.pas, there are two places where "DefaultFields" is used and should be replaced with TFields.LifeCycles.
However this error hasn't been fixed. ZTable.InsertRecord still fails to insert a record, and doesn't report an error.
In addition, the deprecation warnings in ZComponent are still there. In ZAbstractRODataset.pas, there are two places where "DefaultFields" is used and should be replaced with TFields.LifeCycles.
Re: ZTable.InsertRecord fails without error XE7
@amarryat,
Indeed, it does not work.
There have been considerable changes in Data.DB.pas in Delphi XE7.
Michal
Indeed, it does not work.
There have been considerable changes in Data.DB.pas in Delphi XE7.
Michal
Re: ZTable.InsertRecord fails without error XE7
Does this mean that we need to wait for an update from Embarcadero for Delphi, or is this a problem with ZeosLib?
Do you have any idea if/when this will be addressed?
Thanks.
Do you have any idea if/when this will be addressed?
Thanks.
Re: ZTable.InsertRecord fails without error XE7
@amarryat,
The problem with Delphi XE7 and ZTable.InsertRecord lies with the ZEOS.
For now, you can use the Append-Post or SQLInsert.
Michal
The problem with Delphi XE7 and ZTable.InsertRecord lies with the ZEOS.
For now, you can use the Append-Post or SQLInsert.
Michal
Re: ZTable.InsertRecord fails without error XE7
Thanks.
I haven't tried SQLInsert - not sure where that is.
However I tried ZTable1.AppendRecord, and it too fails without error. Since the description of AppendRecord and InsertRecord are so similar in the Delphi help file, I'm going to guess that one of those functions calls the other.
I haven't tried SQLInsert - not sure where that is.
However I tried ZTable1.AppendRecord, and it too fails without error. Since the description of AppendRecord and InsertRecord are so similar in the Delphi help file, I'm going to guess that one of those functions calls the other.
Re: ZTable.InsertRecord fails without error XE7
I may not have understood your post correctly. But I think you meant this, which is a workaround, and it worked. Thanks.
ZTable1.Insert;
ZTable1.FieldByName('mycolumn').AsString := 'my column value';
ZTable1.FieldByName(......
.....
ZTable1.FieldByName(......
ZTable1.Post;
ZTable1.Insert;
ZTable1.FieldByName('mycolumn').AsString := 'my column value';
ZTable1.FieldByName(......
.....
ZTable1.FieldByName(......
ZTable1.Post;