Search found 14 matches
- 26.02.2009, 10:53
- Forum: 6.6 - stable
- Topic: Check UpdateCount on TZUpdateSQL.PostUpdates
- Replies: 9
- Views: 1182
- 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
I posted my first bug report: http://zeosbugs.firmos.at/view.php?id=171
I hope my description is enough clear.
Thanks,
David
- 25.02.2009, 12:17
- Forum: 6.6 - stable
- Topic: Check UpdateCount on TZUpdateSQL.PostUpdates
- Replies: 9
- Views: 1182
- 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...
- 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. ...
- 25.08.2008, 11:49
- Forum: Feature Requests
- Topic: Evolution: Set a default Date egal to -700000 instead 0
- Replies: 1
- Views: 1949
- 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...
- 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...
- 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
- 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...
- 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...
- 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...
- 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...
- 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...