Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql and <cftransaction>

Status
Not open for further replies.

imstillatwork

IS-IT--Management
Sep 26, 2001
1,605
US
What Do i need to do to get this to work properly?
table Type is MYisam.

If i hit refresh a few times the insert will go, AND I also get the identity....



Code:
<cftransaction action=&quot;begin&quot;>
 <cfquery....>
  INSERT INTO....
 </cfquery>

 <cfquery....>
  SELECT @@identity AS ID
 </cfquery>

 <cftransaction action=&quot;commit&quot;></cftransaction>
 </cftransaction>

THANKS
 
AFIAK, I don't think MySQL supports transactions (rollbacks). Look up &quot;transactions&quot; in the MySQL docs.

HTH,

Brad
 
I have done more research, and MySQL will do formal transactions, BUT, you have to configure the server to support InnoDB table Types....Which I have yet to figure out in WINDOWS...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top