Search found 158 matches

by sandeep_c24
26.03.2008, 07:32
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Computed Columns
Replies: 4
Views: 1035

I have logged about this in Bug tracker.

Sandeep
by sandeep_c24
26.03.2008, 07:23
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

Hi Mark

If the table has a primary key then only we raise an exception. If the table has no primary key then there is no way to identify a record uniquely and we allow multiple records to be updated. And we could raise an exception, as you suggested, based on some setting in the query?

Sandeep
by sandeep_c24
25.03.2008, 07:49
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Computed Columns
Replies: 4
Views: 1035

I think existing code will not break as database engines don't allow updates to computed columns.

Sandeep
by sandeep_c24
25.03.2008, 07:40
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

Assuming one update command is executed for each record updated (in TZTable/TZQuery) the updatecount must always return 1. If the updatecount is not 1, either for wmWhereAll or wmWhereKeyOnly, then this is an error condition. If multiple records are updated then the query must have been executed dir...
by sandeep_c24
24.03.2008, 05:42
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Computed Columns
Replies: 4
Views: 1035

Computed Columns

Currently Zeos allows computed columns to be edited but an exception is raised as soon as the record is posted. Should computed columns be marked as read-only?

Sandeep
by sandeep_c24
23.03.2008, 10:13
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

I think it might be alright to add a property to ZQuery.Properties, but that means it has to done for each query and cannot be done for a database connection. What if this switch is added to TZConenction.Properties? I am not quite sure about updates to multiple rows. Do you mean when used with Cache...
by sandeep_c24
21.03.2008, 22:59
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

The update done by second session should overwrite the updates done by the first session if WhereMode is wmWhereKeyOnly, but when it is wmWhereAll the update does not succeed as the record cannot be searched based on the where clause made. This I think should raise an exception as the update has fai...
by sandeep_c24
21.03.2008, 05:30
Forum: User Contributions
Topic: [bug_fixed] Default value read from RDB$DEFAULT_SOURCE
Replies: 1
Views: 2195

[bug_fixed] Default value read from RDB$DEFAULT_SOURCE

Hi Mark I have changed the way DEFAULT was removed from RDB$DEFAULT_SOURCE. function TZInterbase6DatabaseMetadata.GetColumns(const Catalog: string; const SchemaPattern: string; const TableNamePattern: string; const ColumnNamePattern: string): IZResultSet; var Key: string; SQL, Where, ColumnName, Def...
by sandeep_c24
20.03.2008, 09:45
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

Mark what are your thoughts on this issue?

Sandeep
by sandeep_c24
20.03.2008, 07:42
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

Zeos query returns update count which can be used to determine if the update was successful or not.

I think this should be used to tell user what has happened otherwise the user does not know if the upadtes were successful or not.

Regards

Sandeep
by sandeep_c24
19.03.2008, 22:08
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

It's got nothing to do with FB versioning, but the way the updates are handled by Zeos are not correct(IMO).

Has anyone verified this?

Regards

Sandeep
by sandeep_c24
19.03.2008, 22:06
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Zeos & Instant Objects FrameWork
Replies: 7
Views: 1607

Hi Yogi

Add "DBCommonTypes" to uses clause in the unit where you get the error.

Regards

Sandeep
by sandeep_c24
18.03.2008, 07:58
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Zeos & Instant Objects FrameWork
Replies: 7
Views: 1607

Hi Yogi

Install Zeos and then look in IO folder for Zeos broker. Install that and you should be working with Zeos and IO.

Regards

Sandeep
by sandeep_c24
18.03.2008, 06:44
Forum: User Patches
Topic: [patch_done] Updating Same Record
Replies: 24
Views: 5870

[patch_done] Updating Same Record

I haven't noticed this before but I think this behavior is not correct. What is happening is I have a simple app connected to Firebird and Transaction Isolation is set to ReadCommitted. I run 2 instances of the same app and then edit same record. The first app updates the record but if I edit the sa...
by sandeep_c24
13.03.2008, 21:27
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Filter option of a ZTable
Replies: 3
Views: 1028

Remove quotes around 321 and try.

Regards

Sandeep