Search found 14 matches

by ddantoni
26.02.2009, 10:53
Forum: 6.6 - stable
Topic: Check UpdateCount on TZUpdateSQL.PostUpdates
Replies: 9
Views: 1182

Thank you !!!
by ddantoni
25.02.2009, 13:21
Forum: 6.6 - stable
Topic: Why default value for date is 0 ?
Replies: 2
Views: 512

Hi Mark,
I posted my first bug report: http://zeosbugs.firmos.at/view.php?id=171
I hope my description is enough clear.

Thanks,
David
by ddantoni
25.02.2009, 12:17
Forum: 6.6 - stable
Topic: Check UpdateCount on TZUpdateSQL.PostUpdates
Replies: 9
Views: 1182

Hi Mark, thank for this quick answer. I use the version "6.6.4-stable" and after a search for "ValidateUpdateCount", I found the modification was only in ZDbcGenericResolver.pas. The PostUpdates method of TZUpdateSQL is not modified yet. (I use this purpose to check if another cl...
by ddantoni
24.02.2009, 17:18
Forum: 6.6 - stable
Topic: Check UpdateCount on TZUpdateSQL.PostUpdates
Replies: 9
Views: 1182

Check UpdateCount on TZUpdateSQL.PostUpdates

Hi, it should be very interesting if the TZUpdateSQL.PostUpdates method included a parameter which turn on a validation of updates. In the TZUpdateSQL.PostUpdates method, replace the usual "Statement.ExecutePrepared;" by lValidateUpdateCount := StrToBoolEx( Sender.GetStatement.GetParameter...
by ddantoni
24.02.2009, 17:06
Forum: 6.6 - stable
Topic: Why default value for date is 0 ?
Replies: 2
Views: 512

Why default value for date is 0 ?

Hi, when I do a GetDate on a field which is null or egal to "0000-00-00", the GetDate method return me 0. 0 is not the default value for Delphi's date : DateToStr(0) -> 30/12/1899 DateToStr(-700000) -> 00/00/0000 Also this constant (-700000) is always used to define a null date in Delphi. ...
by ddantoni
25.08.2008, 11:49
Forum: Feature Requests
Topic: Evolution: Set a default Date egal to -700000 instead 0
Replies: 1
Views: 1949

Hello,
in the latest release, the default date value is always 0.
Is there anybody that had the same problem that me:
(MySQL date value for "0000-00-00" is defined to 0 and should be -700000)

Thanks
David
by ddantoni
04.05.2008, 18:55
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

I wrote a component that execute this kind of update. The source code is here: Unit hxdZConcurrentUpdate; { Modification to do ZSqlUpdate: Procedure TZUpdateSQL.PostUpdates(Sender: IZCachedResultSet; UpdateType: TZRowUpdateType; OldRowAccessor, NewRowAccessor: TZRowAccessor); if ExecuteStatement the...
by ddantoni
28.04.2008, 20:42
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

I have found the problem. We can't get implementing object of interface simply in casting the interface. And it's because I couldn't access to CachedResultSet object. Here, the code that I use : // http://hallvards.blogspot.com/2004/07/hack-7-interface-to-object-in-delphi.html function GetImplementi...
by ddantoni
25.04.2008, 20:33
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

Nobody to help me ? :wink:
Thanks in advance.
David
by ddantoni
19.04.2008, 17:34
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

I created this function that will replace my ApplyUpdates calls : Procedure TFrmMain.ConcurrentApplyUpdates; Var lConcurrentError, B: Boolean; Begin lConcurrentError := True; While lConcurrentError Do Begin Try ZQuery1.ApplyUpdates; lConcurrentError := False; Except On E: EZSQLException Do If E.Erro...
by ddantoni
19.04.2008, 14:58
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

Bonjour mdaems and cipto_kh, mdaems I didn't know this method that consist to use where clause to specify data field on update and check the UpdateCount after. Effectivly your solution is good for me and I will use it combined with LastModifiedTime. For testing, I have add modification of sandeep_c2...
by ddantoni
17.04.2008, 23:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Concurrent access and data overwrite protection
Replies: 7
Views: 2084

Concurrent access and data overwrite protection

Hello, I'm writing an application where user can fill record within a grid. When a certain field is filled, the record is considered for filled and locked. My application will work on a network and many users will be able to fill the same record at the same time (on differents computers). To prevent...
by ddantoni
08.08.2006, 07:06
Forum: Feature Requests
Topic: Evolution: Set a default Date egal to -700000 instead 0
Replies: 1
Views: 1949

Evolution: Set a default Date egal to -700000 instead 0

Hi, is it possible to change the date default value or add possibility to change it inside zdbc config because lot of controls like DevExpress use -700000 value to specify NullDate. Also DateToStr(-700000) return 00/00/0000. Currently I modified MySQLResultSet.GetDate and changed Result := 0 to Resu...
by ddantoni
22.10.2005, 10:18
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Newbie question: Destroy statement returned by CreateStateme
Replies: 0
Views: 707

Newbie question: Destroy statement returned by CreateStateme

Hi, I want execute queries without use zdbo components. So, i found in Knowledge base this sample : ... Statement := MyZConnection.DbcConnection.CreateStatement; ResultSet := Statement.ExecuteQuery('SELECT * FROM MyTable'); Metadata := ResultSet.GetMetadata; ... My question is: Must I destroy object...