Search found 18 matches

by apiove
15.11.2006, 12:34
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Howto get generated id/int best ?
Replies: 8
Views: 3420

Re: MySQL auto increment functionality

Downloading Zeoslib version 6.6.0-beta is possible to enable this functionality! Follow these steps: 1. Locate: procedure TZMySQLCachedResolver.PostUpdates(Sender: IZCachedResultSet into: ZDbcMySqlResultSet.pas 2. Edit: remove PATCH [1185969] comments 3. Build and install 4. Enjoy! Byez, Andrea Tha...
by apiove
14.11.2006, 19:44
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Howto get generated id/int best ?
Replies: 8
Views: 3420

MySQL auto increment functionality

Downloading Zeoslib version 6.6.0-beta is possible to enable this functionality! Follow these steps: 1. Locate: procedure TZMySQLCachedResolver.PostUpdates(Sender: IZCachedResultSet into: ZDbcMySqlResultSet.pas 2. Edit: remove PATCH [1185969] comments 3. Build and install 4. Enjoy! Byez, Andrea Than...
by apiove
07.11.2006, 17:31
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Howto get generated id/int best ?
Replies: 8
Views: 3420

Re: Howto get generated id/int best ?

If i use auto generated index values (as primary for later use as foreign reference) there are is this std approach to enter new data: 1.) run a select statment, to check if entry already exists 2a.) if entry exists, use returned id as reference or 2b.) insert new entry and query for auto generated...
by apiove
18.10.2006, 09:02
Forum: Bug Reports
Topic: Integer field AsVariant gives a EDatabaseError
Replies: 0
Views: 2615

Integer field AsVariant gives a EDatabaseError

I've download Zeoslib-6.5.1-rev113 I use Delphi 7 and 5.0.26-community-nt DROP TABLE IF EXISTS `abc_pm`.`vendor_of`; CREATE TABLE `abc_pm`.`vendor_of` ( `vendor_id` int(10) unsigned default NULL, `producer_id` int(10) unsigned default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; I when I try to acce...
by apiove
11.10.2006, 10:14
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: [Delphi7] Compile problem "GetSequences"
Replies: 1
Views: 918

[Delphi7] Compile problem "GetSequences"

Hi, I've decied to migrate to zeoslib-6.5.1 for mysql5.0 support... 1. I'have downloaded: ZEOSLIB - 20061003 Testing branch(rev 102) (zip 12.8MB) 2. I've extracted all files to: C:\Programmi\Borland\Delphi7\Lib\Zeoslib-6.5.1-beta\ 3. I've added to Delphi 7 libray path: C:\Programmi\Borland\Delphi7\L...
by apiove
06.06.2006, 14:05
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: AutoInc value not fetched after inserting (svn version)
Replies: 5
Views: 1568

Look at this code

It is possible to send the patch as a svn diff to current testing branch? If it doesn't look to 'hacky' it will be done in a minute (don't take that literally :wink: ) It would save us all a lot of work, as I think you'va already tried the fix and are satisfied. Mark Referring to: http://zeos.firmo...
by apiove
17.03.2006, 10:45
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to implement transactions?
Replies: 10
Views: 4438

Hi. I'm sorry about the late reply - I've been away for a while.. I'm not trying to do any altering of the database structure. What I'm doing is inserting, updating and deleting records. So, yes I thought you should be able to do rollbacks then. But is the code to do it witch I submitted above corr...
by apiove
07.03.2006, 18:49
Forum: 6.1.5
Topic: TZQuery & LAST_INSERT_ID()
Replies: 4
Views: 2535

Re: Here you are my tests

I've modified TZUpdateSQL component adding a LastInsertIdSQL and AutoColumnIndex properties trying to emulate TZTable behaviour. I've added after normal PostUpdates operation a query execution to get new field index from database. But now I've a problem finding a connection to make the query, how c...
by apiove
07.03.2006, 18:36
Forum: 6.1.5
Topic: TZQuery & LAST_INSERT_ID()
Replies: 4
Views: 2535

Here you are my tests

I've modified TZUpdateSQL component adding a LastInsertIdSQL and AutoColumnIndex properties trying to emulate TZTable behaviour. I've added after normal PostUpdates operation a query execution to get new field index from database. But now I've a problem finding a connection to make the query, how ca...
by apiove
03.03.2006, 15:58
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to implement transactions?
Replies: 10
Views: 4438

Re: How to implement transactions?

Please post the code of you create table sql script and the log of TZSQLMoinitor.

Byez,
Andrea
by apiove
03.03.2006, 12:41
Forum: 6.1.5
Topic: TZQuery & LAST_INSERT_ID()
Replies: 4
Views: 2535

Hi! It's very easy. As you wrote in the subject, it's last_insert_id(). Use a new ZReadOnlyQuery with the SQL 'select last_insert_id() as LID'. After you have done a Post and ApplyUpdates (I'm not sure if the last one is really necessary) of your Insert, close and open the LID query. Then you have ...
by apiove
02.03.2006, 19:52
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to begin
Replies: 2
Views: 1059

Very simple MySQL, TZQuery and TZTable example

I've attached an example using ZeosDBO-6.1.5-patch2. I'think that is better use ZeosDBO-6.1.5-patch2 to start understanding Zeoslib, because is a stable version, so you don't mix your errors with Zeoslib bugs. PS: Look at file comment of attached file --- Ti ho allegato un'esempio che usa ZeosDBO-6....
by apiove
02.03.2006, 19:19
Forum: 6.1.5
Topic: TZQuery & LAST_INSERT_ID()
Replies: 4
Views: 2535

TZQuery & LAST_INSERT_ID()

Hello folks, I'm using Delphi 7, Mysql 4, and ZeosDBO 6.1.5 Is possible to have auto generated field values using TZQuery and TZUpdateSQL after an insert? Any suggest? Thanks a lot. PS: I can't use TZTable because I'have to fetch only few records from a big table that contains thousand of record. --...
by apiove
02.03.2006, 09:59
Forum: Announcements
Topic: Looking forward: The future of the ZeosLib Project.
Replies: 16
Views: 17632

I wan't to give my contribute

I'want to partecipate to this project. Who am I: There are simple way to start to collaborate with you? I'm not a supercoder: I've made a simple TDBTreeView (a bit buggy, but working quite fine not released, I'm going to GPL it very soon); I'm developing an office application for my business using D...
by apiove
31.01.2006, 09:33
Forum: Feature Requests
Topic: ActiveRecord property
Replies: 4
Views: 2395

I know...

zippo wrote:RecNo is also a TDataset implementation if I'm not wrong..
Yes it is, just a stilistic note! ;)

Regards,
Andrea