Search found 91 matches

by pol
09.01.2006, 11:23
Forum: Firebird
Topic: simple query with params
Replies: 9
Views: 3573

Hello Josef,

You want to pass the column name for your "order by" as a bind variable? I don't think that this is possible.

Best regards,
Rüdiger
by pol
06.01.2006, 09:44
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Speed of update
Replies: 4
Views: 1124

Hi Markus,

I thought, when doing a (Z)Table.Open, all records are fetched at once. That's why I always prefer Queries. Am I wrong here?

Best regards,
Rüdiger
by pol
22.12.2005, 10:37
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Mysql Table Post
Replies: 6
Views: 1258

Hi Ben!

What kind of problem? I never use CachedUpdates = True, but without ApplyUpdates... nothing in the database, as mbranco has experienced.
by pol
21.12.2005, 10:21
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Mysql Table Post
Replies: 6
Views: 1258

Hi!

After ztDocumentos.Post you have to add
ztDocumentos.ApplyUpdates
Only this will bring the posted data finally into the database. It took me some time too to get to that (thanks to the old forum).

HTH
Rüdiger
by pol
20.12.2005, 11:12
Forum: MySQL
Topic: Slow on Linux
Replies: 7
Views: 2267

Query: select * from ANAGRAF where ANA_EAN = :ANA_EAN
before Query.Open: Query.ParamByName('ANA_EAN').AsString:=COD

same for Insert and Update
by pol
19.12.2005, 10:18
Forum: MySQL
Topic: Slow on Linux
Replies: 7
Views: 2267

This surprises me. Is there an index on ANA_EAN? I wouldn't use RecordCount. You could use ZQry.EOF instead. And maybe (I'm not sure about MySQL) using bind variable can speed up queries. With Oracle that would help a lot.
by pol
16.12.2005, 11:30
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Problem Compiling and Installing the Version 6.5.1
Replies: 4
Views: 1057

@raider:
The error you cited above comes when you try to install such a package, not by compiling. When something is wrong with compiling, you get "normal" Delphi errors.
by pol
16.12.2005, 11:26
Forum: MySQL
Topic: Slow on Linux
Replies: 7
Views: 2267

Can you execute this update statemeint in the mysql command line tool (mysql) on both systems and see if it is slower on Linux too? Maybe making a script out of your text file. Another thing: what part is slower: the locate or append or insert? If time is important for you maybe it would be better t...
by pol
16.12.2005, 11:16
Forum: Feature Requests
Topic: MySQL 5
Replies: 19
Views: 7286

Strange, really. Have you tried to run it in debug mode? Put a stop point on the first query.sql.text:=... and then proceed with F8. Watch if the curser stops a short time on the exec or if it goes right on to the next statement. That would mean that the exec "comes back" before the stored...
by pol
15.12.2005, 10:02
Forum: 6.1.5
Topic: Zeos 6.1.5, Kylix 3 and RedHat 9, Error ZConnection.dcu
Replies: 6
Views: 2284

If I'm right (haven't done it for some time) it compiles allright when the compiler finds the .pas files. So if you set the project search path to the src folders, as I wrote in my first posting in this thread, it should work.

Greetings,
Rüdiger
by pol
15.12.2005, 09:56
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Problem Compiling and Installing the Version 6.5.1
Replies: 4
Views: 1057

You must only compile this package, not install. This is the matter with all packages but ZComponent. Install is only for packages with icons on the palette.

HTH
Rüdiger
by pol
15.12.2005, 09:54
Forum: Feature Requests
Topic: MySQL 5
Replies: 19
Views: 7286

But what happens when you don't use sleep? What kind of error message?
Do I understand you right that it depends on the length of your procedure (in that way content matters!) how long the sleep must be?
by pol
15.12.2005, 09:27
Forum: MySQL
Topic: Slow on Linux
Replies: 7
Views: 2267

Slow concerning what? On the same machine (dual boot)?
Has it something to do with Zeos? And if, when? Connecting, opening a query...
by pol
14.12.2005, 10:38
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: TZQuery and multistatements
Replies: 4
Views: 1156

I don't think that TZQuery can do that. Take a look at TZSQLProcessor, it has a "script" property where you put your statements in.
by pol
14.12.2005, 09:35
Forum: Feature Requests
Topic: MySQL 5
Replies: 19
Views: 7286

Mmh... Open is always better when retrieving a result set, which your second query does. What does your procedure? Another thing: when you are typing these commands at the mysql command prompt, the pause between your first and second pressing "enter" will be longer than sleep(500) which is...