Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 24th, 2012  |  syntax: None  |  size: 0.43 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CDbCommand failed to execute the SQL statement: SQLSTATE[25P02]: In failed sql transaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
  2.        
  3. BEGIN; -- transaction starts here
  4.  
  5. -- do things if you want
  6.  
  7. SAVEPOINT my_savepoint;
  8.  
  9. -- failing statement here
  10. -- all other statements are ignored
  11.  
  12. ROLLBACK TO SAVEPOINT my_savepoint;
  13.  
  14. -- continue your transaction starting from my_savepoint
  15.  
  16. COMMIT;
clone this paste RAW Paste Data