Search found 17 matches
- 26.11.2007, 10:28
- Forum: MySQL
- Topic: Initizialising global variable
- Replies: 8
- Views: 2499
This patch has been added to zeos testing branch (REV 314) and will be included in Zeoslib 6.6 unless somebody experiences serious trouble. It looks very safe, however, as it only has effects when you deliberately add new connection options to the TZConnection.Properties setting. marcocot , thanks,...
- 20.11.2007, 17:40
- Forum: MySQL
- Topic: Initizialising global variable
- Replies: 8
- Views: 2499
- 20.11.2007, 16:01
- Forum: MySQL
- Topic: Initizialising global variable
- Replies: 8
- Views: 2499
This may be done using a trick. If you add a 'set' statement to the my.cnf init-command parameter you should be able to execute it at every connect. I need to write security information, so it won't be the right place. You can use an application specific cnf file by adding MYSQL_READ_DEFAULT_FILE=<...
- 16.11.2007, 10:51
- Forum: MySQL
- Topic: Initizialising global variable
- Replies: 8
- Views: 2499
Initizialising global variable
Hello,
I need to inizialise a global variable to mysql server during a connection. Is there a way to include the initizialization in TZConnectio component? maybe in params property? I actually excute a separated query with a SET statement.
thanks
Marco
I need to inizialise a global variable to mysql server during a connection. Is there a way to include the initizialization in TZConnectio component? maybe in params property? I actually excute a separated query with a SET statement.
thanks
Marco
- 10.10.2007, 16:30
- Forum: MySQL
- Topic: TZUPDATESQL and autoincrement fields
- Replies: 1
- Views: 1275
TZUPDATESQL and autoincrement fields
Hello, I have a simple table with an autoincrement field. I have dropped a TZQUERY and aTZUpdateSQL. Just to test I filled Zquery.SQL property with SELECT * FROM atable and filled the sql properties of the TZUpdateSQL component with the proper statentemnts. I tryied working in autocommit mode: Zquer...
- 02.10.2007, 09:06
- Forum: MySQL
- Topic: IN and OUT params and TSQLUPDATE params
- Replies: 6
- Views: 2643
add string 'CLIENT_MULTI_STATEMENTS=1' to property ZConnection1.Properties Also : to retrieve the value of the @variable try 'select @variable;' Mark thanks for your reply. Unfurtunately nothing have changed. I tryied this simple procedure: CREATE DEFINER = 'root'@'%' PROCEDURE `new_proc`(OUT _VALU...
- 02.10.2007, 08:56
- Forum: MySQL
- Topic: IN and OUT params and TSQLUPDATE params
- Replies: 6
- Views: 2643
add string 'CLIENT_MULTI_STATEMENTS=1' to property ZConnection1.Properties Also : to retrieve the value of the @variable try 'select @variable;' Mark thanks for your reply. Unfurtunately nothing have changed. I tryied this simple procedure: CREATE DEFINER = 'root'@'%' PROCEDURE `new_proc`(OUT _VALU...
- 01.10.2007, 17:42
- Forum: MySQL
- Topic: IN and OUT params and TSQLUPDATE params
- Replies: 6
- Views: 2643
Try to use this statement : SET @ID_AGENTE_EMAILS_SRCDB=:ID_AGENTE_EMAILS_SRCDB;CALL APPEND_AGE_EMAIL(:IS_DEFAULT,:ID_AGENTE_SRCDB,:ID_AGENTE,:E_MAIL,:ID_STATO_EMAIL,@ID_AGENTE_EMAILS_SRCDB); Sorry, I didn't test it... I could not try it myself, as I have changed my code... But I got the same probl...
- 28.09.2007, 07:41
- Forum: MySQL
- Topic: IN and OUT params and TSQLUPDATE params
- Replies: 6
- Views: 2643
IN and OUT params and TSQLUPDATE params
Hello, I am having this excepion raised when I try to pass to a stored procedure an TZSQLUPDATE component param. "SQL Error: OUT or INOUT argument 6 for routine venditori.APPEND_AGE_EMAIL is not a variable or NEW pseudo-variable in BEFORE trigger." here what I wrote in INSERTSQL property: ...
- 25.06.2007, 11:34
- Forum: MySQL
- Topic: Zeos and locking
- Replies: 1
- Views: 1467
Re: Zeos and locking
Hello, I feel a little confusing about the functionality of transaction isolation and locking.Hoping someone can help me. Lets suppose 2 transactions work on the same record I call them T1,T2. T1 start transaction before T2. T2 commit before T1 here what I got: Serializable, I got dead lock error o...
- 25.06.2007, 11:01
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: MYSQL and lock
- Replies: 1
- Views: 642
Re: MYSQL and lock
Hello to anyone, I need lock a record to prevent other uses to modify/delete it. I use SELECT.. FOR UPDATE using TZquery. The problem is the second user stand still waiting for the first user to commit or roll back its transaction and the application freezing. I there a way to break this waiting? M...
- 25.06.2007, 09:13
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: MYSQL and lock
- Replies: 1
- Views: 642
MYSQL and lock
Hello to anyone, I need lock a record to prevent other uses to modify/delete it. I use SELECT.. FOR UPDATE using TZquery. The problem is the second user stand still waiting for the first user to commit or roll back its transaction and the application freezing. I there a way to break this waiting? Ma...
- 22.06.2007, 10:17
- Forum: MySQL
- Topic: Zeos and locking
- Replies: 1
- Views: 1467
Zeos and locking
Hello, I feel a little confusing about the functionality of transaction isolation and locking.Hoping someone can help me. Lets suppose 2 transactions work on the same record I call them T1,T2. T1 start transaction before T2. T2 commit before T1 here what I got: Serializable, I got dead lock error on...
- 12.06.2007, 08:08
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Cached updates and Refresh
- Replies: 3
- Views: 1349
Re: Cached updates and Refresh
Hello to anyone, I have a complex select with a join. But I can't get joined fields when I am using cached updates. Without using cached updates I can solve refreshing the dataset, but refreshing with cached updates makes losting . the records. Should I use lookup fields instead of joins? Or there'...
- 11.06.2007, 16:55
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Cached updates and Refresh
- Replies: 3
- Views: 1349
Cached updates and Refresh
Hello to anyone, I have a complex select with a join. But I can't get joined fields when I am using cached updates. Without using cached updates I can solve refreshing the dataset, but refreshing with cached updates makes losting . the records. Should I use lookup fields instead of joins? Or there's...