Search found 29 matches

by k1attila1
29.04.2017, 08:27
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery vs ZReadOnlyQuery
Replies: 3
Views: 1642

Re: ZQuery vs ZReadOnlyQuery

Thank you Jan, to clarify.
Attila
by k1attila1
27.04.2017, 08:56
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery vs ZReadOnlyQuery
Replies: 3
Views: 1642

ZQuery vs ZReadOnlyQuery

Hi

Could somebody tell me what is the difference between

ZQuery + Readonly=True and ZReadOnlyQuery ?

Mainly speed ? or somthing else ? (FireBird SQL)

Thank you Attila
by k1attila1
22.02.2017, 17:16
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery in transaction
Replies: 5
Views: 1838

Re: ZQuery in transaction

Hello Jan
Thank you

Maybe i found a solution :

ZConnection.Autocommit:=false;

and i use

manual commit and rollback :

ZConnection.Commit or ZConnection.Rollback


Thnak you Attila
by k1attila1
22.02.2017, 10:36
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery in transaction
Replies: 5
Views: 1838

Re: ZQuery in transaction

Thank you miab3

But i edit table1 in dbgrid.

After post a record in the grid , i would like to made some changes in table2, in table1.afterpost eventhandler.

If there is something wrong happen in table1.afterpost i would like to rollback all changes in table2 and table1.

thank you
Attila
by k1attila1
22.02.2017, 09:28
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery in transaction
Replies: 5
Views: 1838

Re: ZQuery in transaction

Sorry I use FireBird SQL 2.5
by k1attila1
22.02.2017, 09:24
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery in transaction
Replies: 5
Views: 1838

ZQuery in transaction

Hello I have two table : table1 and table2 ZQuery1 = table1 ZQuery2 = table2 After post a new record in ZQuery1 (table1) i'd like to modify something in ZQuery2 (table2) in ZQuery1.afterpost event. Is it possible to do it in one transaction ? And rollback the changes in ZQuery1 and ZQuery2 if someth...
by k1attila1
07.02.2017, 09:34
Forum: ZeosLib 7.1 stable Forum
Topic: FireBird 2.5 collate
Replies: 2
Views: 1426

Re: FireBird 2.5 collate

Thank you Sir.
Ok. I Understand.
by k1attila1
07.02.2017, 07:34
Forum: ZeosLib 7.1 stable Forum
Topic: FireBird 2.5 collate
Replies: 2
Views: 1426

FireBird 2.5 collate

Hello

I use special collate (PXW_HUN) for a varchar field. (codepage WIN1250)

Why do i get different resultset order if i use

ZTable SortFields-SortType properties or

ZQuery normal "select * form ...... order by ...."

Thnak you Attila Kovács
by k1attila1
26.11.2014, 13:13
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Re: Intransaction ?

Thanks

Yes i found too, that it is the only possibility.

Attila
by k1attila1
26.11.2014, 12:30
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Re: Intransaction ?

Dear Michal

Thanks for your answer

But i don't how it can solve the above problem.

i need : when i only watch data in a DBGRID, i don't want that the firebird is intransaction. (only while firebird load all data into a grid, and exit from transaction)

Attila
by k1attila1
26.11.2014, 10:03
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Re: Intransaction ?

Thanks for your answer my problem with it : I have a grid only on a form and i just look at one table of my database (no edit, no insert, no delete) ONLY SELECT statment Zeos/firebird alway keep the system in transaction, because DBGRID need an opened dataset. So the firebird internal SWEEP can't cl...
by k1attila1
25.11.2014, 10:44
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Re: Intransaction ?

Dear Sergiomaster

Thanks for your patience


So, then - i used ZSQLMonitor - i can't run a simple readonly query (select * from ...) without transaction

Zeos is always keep in transaction Firebird Server. (or firebird need transaction for select, update , insert, delete .... always)


Attila
by k1attila1
24.11.2014, 15:08
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Re: Intransaction ?

So exactly, i want only a simple readonly query (SQL= select * from...) (nothing special) and i call .open SQLDB : after .open the sqldb start automatically a transaction an keep this state until .close and .commit But i don't want this, i want to open a readonly query, but without transaction ? Can...
by k1attila1
24.11.2014, 14:01
Forum: ZeosLib 7.1 stable Forum
Topic: Intransaction ?
Replies: 11
Views: 2372

Intransaction ?

Hi I have a simple question. I use lazarus sqldb and zeos too from freepascal. if i use sqldb it is always in transaction even if i open a readonly simple query. (.open method start a transaction) And how does it work in zeos ? Or it depends on the state of the Connection.AutoCommit property. if Aut...
by k1attila1
17.11.2014, 18:18
Forum: ZeosLib 7.1 stable Forum
Topic: ZQuery ZUpdateSql
Replies: 9
Views: 1697

Re: ZQuery ZUpdateSql

Thank you very much for the fast action.

Attila