If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Transactions/Stored Procs/InnoDB questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-07, 19:45
Toum Toum is offline
Registered User
 
Join Date: Nov 2003
Posts: 4
Transactions/Stored Procs/InnoDB questions

*** Question (1)

Is there anay way to specify in my.cnf or my.ini that all tables that will be created will be InnoDB tables ; instead of specifying Type=InnoDB at each end of CREATE TABLE statement ?


*** Question (2)

I have a stored proc Proc_11 called in a stored proc Proc_1. In Proc_1 a table is locked by SELECT ... FOR UPDATE and changed before calling Proc_11. But, it seems Proc_11's thread does not see changes done by Proc_1. It seems Proc_11's thread is considered as a new independent transaction ?

Exemple :

CREATE PROCEDURE Proc_1 ()

BEGIN

SELECT FIELD_X FROM TABLE_Y WHERE FIELD_X = 'X' FOR UPDATE;

... update of TABLE_Y in a cursor FETCH loop ...

CALL Proc_11();

... Proc_11 did not see changes ...

END;

*** Question (3)

Does store procs first statement (BEGIN) have a signification in terms of transactionnal mode ?

Thanks in advance for any help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On