Search found 26 matches

by anse123
01.04.2006, 20:50
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10080

I've encountered the same problem, and everytime I work with temporary mysql tables, I have to use TZUpdateSQL to update them. OK, now I am also using a TZUpdateSQL for UPDATE-Statements in order to get rid of the "cannot update this query type"-problem. But the paramater-substitution in ...
by anse123
31.03.2006, 19:28
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10080

Hi there, ok, my code is as follows, a little bit simplified: ZQuery2.Close; ZQuery2.SQL.Clear; ZQuery2.SQL.Add( 'SELECT * FROM ' + ActualTable ); ZQuery2.SQL.Add( 'WHERE ' + trim(Memo3.Text) ); ZQuery2.SQL.Add('LIMIT ' + intToStr(mainform.UpDownLimitStart.Position) + ', ' + intToStr(mainform.UpDown...
by anse123
30.03.2006, 21:19
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cannot update temporary tables
Replies: 25
Views: 10080

I just wanted to say that I still got the same problem and I wonder why so few others seem to have this problem with the "Cannot update this query type". So please, if someone knows something more on that, please help us!

Anse
by anse123
16.03.2006, 20:28
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Error while posting updates
Replies: 2
Views: 1137

Seems like a more general problem, could have something to do with the old mysql-version. Have you considered updating MySQL ?

Greetings,
Ansgar
by anse123
09.03.2006, 11:44
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to avoid "cannot update this query type" ?
Replies: 14
Views: 3277

Stefan,

"RequestLive" was renamed to "ReadOnly" in 6.5.1 . And if I set ReadOnly:=true, I cannot edit data at all, as one would expect when setting the query to "readonly" ...

Ansgar
by anse123
03.03.2006, 21:17
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to avoid "cannot update this query type" ?
Replies: 14
Views: 3277

Strange: sometimes i can update with LIMIT-queries and sometimes not. I have a slight idea that only tables with a primary key can be updated, because one table I cannot update has no PK and another with a PK can be updated... By the way: the "ZQuery.WhereMode" is set to "wmWhereAll&q...
by anse123
02.03.2006, 19:39
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to avoid "cannot update this query type" ?
Replies: 14
Views: 3277

How to avoid "cannot update this query type" ?

- DBMS: MySQL - ZQuery.SQL is "select * from mytable limit 0,10" When I do a ZQuery.Post through a TDBGrid and a TDatasource I get the error "cannot update this query type". I thought this error only raises when doing queries with joins or some aggregate-functions in it?? Regards...
by anse123
01.03.2006, 21:05
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZDbcMySQLMetadata.pas makes problems: "SHOW TABLES FROM
Replies: 1
Views: 511

got it! The ZConnection.Database MUST be set BEFORE .connect is called. I wonder if this is a bug in zeos?

Greetings,
Ansgar
by anse123
01.03.2006, 18:12
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZDbcMySQLMetadata.pas makes problems: "SHOW TABLES FROM
Replies: 1
Views: 511

ZDbcMySQLMetadata.pas makes problems: "SHOW TABLES FROM

Hi again, I have a ZConnection connected to a MySQL-Server and a ZQuery. To switch to another Database I execute a simple "use dbname". So far, so easy. When I query a table with "select * from table1 limit 0,10", the application throws an exception with "SQL Error: You have...
by anse123
28.02.2006, 08:36
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Switch Database with ZConnection.Database
Replies: 2
Views: 817

easyy....

Ok, thanks a lot. That was too easy :)
I always thought, setting the database-property would automatically do a "USE dbname" ...

Greetings,
Anse
by anse123
27.02.2006, 21:44
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Switch Database with ZConnection.Database
Replies: 2
Views: 817

Switch Database with ZConnection.Database

Hello, I have a ZConnection1 and a ZQuery1 but I can only define the Database once. ZConnection1.Database := 'test1'; ZQuery1.SQL.Add('SELECT * FROM table1'); ZQuery1.Open(); // This runs as expected! ZQuery1.Close(); ZConnection1.Database := 'test2'; ZQuery1.SQL.Clear; ZQuery1.SQL.Add('SELECT * FRO...