Search found 26 matches

by anse123
06.11.2006, 21:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Query.RowsAffected is always -1
Replies: 12
Views: 2799

no, sorry this is a MySQL issue...

We fixed it by adding a new method: GetAffectedRowsFromLastPost
http://www.heidisql.com/forum/viewtopic ... 8dabbc2768
by anse123
30.09.2006, 14:46
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Query.RowsAffected is always -1
Replies: 12
Views: 2799

DBMS: MySQL Zeos: 6.5.1 Alpha The RowsAffected property seems only to be updated when an application sends a query with ExecSQL(). It is not updated when updates, deletes or inserts are done by using a dbgrid. In this case i find that RowsAffected is always 0 in an AfterPost-event from a TZQuery. Hm...
by anse123
01.09.2006, 07:51
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZSQLMonitor always logs application-wide
Replies: 9
Views: 3096

puuh.. that exceeds my delphi-knowledge... Tried to insert a connection-parameter for the Loggingevent.Create but only got errors. don't know - maybe I have to live with that issue.
by anse123
01.09.2006, 00:12
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZSQLMonitor always logs application-wide
Replies: 9
Views: 3096

ZSQLMonitor always logs application-wide

I found that ZSQLMonitor is quite useful for logging-purposes. The only thing I find very unpracticle is that it logs events from simply all ZConnection's I am using in a application. Even when I have 2 MDI-windows each containing 1 ZConnection + 1 ZSQLMonitor, both of the ZSQLMonitor's log also eve...
by anse123
26.07.2006, 21:21
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: String escape in Delphi ?
Replies: 9
Views: 4493

the big problem with these functions (CheckScapeString, EscapeCString, QuotedStr) is that they only escape the mostly needed things as quotes, doublequotes and maybe 1 or two other characters. MySQL_real_escape_string is somewhat more complex and would be the best choice. For example it escapes char...
by anse123
02.05.2006, 08:48
Forum: MySQL
Topic: Delphi 7 - Lost connection (timeout)
Replies: 7
Views: 7485

OK, sounds quite easy :) Will try it this evening and let you know if it works.

Anse
by anse123
01.05.2006, 21:35
Forum: MySQL
Topic: Delphi 7 - Lost connection (timeout)
Replies: 7
Views: 7485

hi, in my experiance this is a general issue with the mysql-server, which cuts off connections if they are idle for a specific time and other clients are waiting to get a connection. You have to know that the server only allows a specific amount of connections from all clients, which is by default a...
by anse123
29.04.2006, 20:48
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: mySQL 4 Compress Option
Replies: 13
Views: 3544

Aahhh.... It really seems to be the Properties of the ZConnection. Try to set compress=1 and then, after being connected, execute this SQL-command: show status like "compr%" It correspondents with the value set in the properties! And the good info: We now know that the "Info"-lis...
by anse123
29.04.2006, 20:43
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: mySQL 4 Compress Option
Replies: 13
Views: 3544

The Unit ZDBCMySQL reads and sets the option "compress" on the "Open"-procedure: procedure TZMySQLConnection.Open; ... { Turn on compression protocol. } if StrToBoolEx(Info.Values['compress']) then FPlainDriver.SetOptions(FHandle, MYSQL_OPT_COMPRESS, nil); { Sets connection timeo...
by anse123
18.04.2006, 23:50
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10048

Yes, I am using the alpha 6.5.1 for HeidiSQL :) I noticed the ZConnection-property "Catalog". What does it stand for? Is it probably the represention of the current database, which I can set and get rid of all problems I had ? I always thought I have to set the "Database"-propert...
by anse123
16.04.2006, 00:10
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10048

thanks for the reply, mdaems. I am setting the database property before I execute the "select ...", but it doesn't seem to effect something. For the moment I have fixed the problem by commenting the 4 lines out and removing database from the internal queries (as described above). By the wa...
by anse123
15.04.2006, 13:10
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: SQL Monitor Logging
Replies: 12
Views: 5330

How can I only log queries which are assigned to one of more ZConnection's ? The latest CVS-version of ZSQLMonitor is 2 years old and no earlier version also has a "Connection"-property for this purpose. So if I have 2 connections and 2 ZSQLMonitor objects, the OnLogTrace of both Monitor-o...
by anse123
15.04.2006, 12:49
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10048

ok... ist seems more simple than I thought :) - My ZConnection initially has the database-property set to "Information_schema" (this is the first database on the server) - then a ZQuery executes ('USE ' + secondDBname) - then another ZQuery executes ('SELECT * FROM ' + tableFromSecondDB) -...
by anse123
03.04.2006, 21:25
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10048

I just found this in my mysql-query.log: ... 78 Query SHOW TABLES FROM information_schema LIKE 'channels' 78 Query SHOW COLUMNS FROM information_schema.channels LIKE '%' These queries are fired by ZDbcMysqlMetadata funcs "GetTables" and "GetColumns" and I think "GetKeys"...
by anse123
03.04.2006, 21:13
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10048

still buggy...

Thanks a lot for trying to debug to all guys! But sorry I have to disappoint some of you. I have applied the hack from mdaems and get another errormessage when opening a simple resultset with a ZQuery, TDataSource and a TDBGrid : SQL Error: Unknown table 'channels' in information_schema. Maybe I'm s...