Re: Rollback on a Transaction with No Updates

2007-09-19 Thread Baron Schwartz
Robert DiFalco wrote: Is there any difference between calling rollback or commit on a transaction that did not alter data? For example, not a read-only transaction but a transaction that only performed read-only selects. Any difference in performance between calling rollback or commit? I know the

RE: Rollback on a Transaction with No Updates

2007-09-18 Thread Robert DiFalco
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 10:00 AM To: Robert DiFalco Cc: Baron Schwartz; mysql@lists.mysql.com Subject: Re: Rollback on a Transaction with No Updates I realize that wasn't the question, but it does seem like a lot of trouble to get the equivalent of setAutoCommit

Re: Rollback on a Transaction with No Updates

2007-09-18 Thread Michael Dykman
ichael Dykman [mailto:[EMAIL PROTECTED] > Sent: Monday, September 17, 2007 2:56 PM > To: Robert DiFalco > Cc: Baron Schwartz; mysql@lists.mysql.com > Subject: Re: Rollback on a Transaction with No Updates > > If your transaction are only 1 query deep, why use them at all? An > indivi

RE: Rollback on a Transaction with No Updates

2007-09-17 Thread Robert DiFalco
Sure, but that wasn't really the question. -Original Message- From: Michael Dykman [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:56 PM To: Robert DiFalco Cc: Baron Schwartz; mysql@lists.mysql.com Subject: Re: Rollback on a Transaction with No Updates If your transa

Re: Rollback on a Transaction with No Updates

2007-09-17 Thread Michael Dykman
same as issuing a commit (unless there was an exception but I'm not > analyzing that case). > > -Original Message- > From: Baron Schwartz [mailto:[EMAIL PROTECTED] > Sent: Monday, September 17, 2007 2:36 PM > To: Robert DiFalco > Cc: mysql@lists.mysql.com >

RE: Rollback on a Transaction with No Updates

2007-09-17 Thread Robert DiFalco
ing a commit (unless there was an exception but I'm not analyzing that case). -Original Message- From: Baron Schwartz [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:36 PM To: Robert DiFalco Cc: mysql@lists.mysql.com Subject: Re: Rollback on a Transaction with No Updat

Re: Rollback on a Transaction with No Updates

2007-09-17 Thread Baron Schwartz
Robert DiFalco wrote: Is there any difference between calling rollback or commit on a transaction that did not alter data? For example, not a read-only transaction but a transaction that only performed read-only selects. Any difference in performance between calling rollback or commit? I know the

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-14 Thread Truong Tan Son
449 | +---+--+ 222 rows in set (0.00 sec) Please check what is wrong and teach me. Thanks you, - Original Message - From: "Pooly" <[EMAIL PROTECTED]> To: "MySQL General" Sent: Tuesday, March 14, 2006 2:53 PM Subject: Re: Rollback is no

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-13 Thread Pooly
ser | > +--+ > > > I set innodb_table_locks=0 in my.cnf , but ROLLBACK is still not effect. > > > Could you teach me more ? > > > Thanks and best regards, > > > - Original Message - > From: "Pooly"

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-13 Thread Truong Tan Son
: Monday, March 13, 2006 5:13 PM Subject: Re: Rollback is not take effect on MySQL 5.0.18 2006/3/11, Truong Tan Son <[EMAIL PROTECTED]>: Dear Sir, On RedHat Enterprise 4, and MySQL 5.0.18, I did : mysql> set autocommit=0; mysql> savepoint abc; mysql> insert something

Re: Rollback is not take effect on MySQL 5.0.18

2006-03-13 Thread Pooly
2006/3/11, Truong Tan Son <[EMAIL PROTECTED]>: > Dear Sir, > > On RedHat Enterprise 4, and MySQL 5.0.18, I did : > > mysql> set autocommit=0; > > mysql> savepoint abc; > > mysql> insert something > > mysql> rollback to save point abc; > > Query OK, 0 rows affected, 1 warning (0.00 sec) > ^

Re: rollback after crash on OS X

2005-12-02 Thread Heikki Tuuri
Jaime, please post the COMPLETE UNEDITED .err log. The log sequence number would mean that your InnoDB tablespace has not been used after it was created: 051130 19:01:26 InnoDB: Started; log sequence number 0 43634 Best regards, Heikki Oracle Corp./Innobase Oy InnoDB - transactions, row

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-18 Thread Clint Edwards
_increment the table you are inserting the record into. This should be a little less resource intensive than to put all data into temporary tables. Clint From: Joerg Bruehe <[EMAIL PROTECTED]> To: mysql@lists.mysql.com CC: Andre Matos <[EMAIL PROTECTED]>, Paul DuBois <[EMAI

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-18 Thread Joerg Bruehe
Hi! Am Di, den 18.01.2005 schrieb Paul DuBois um 3:53: > At 21:27 -0500 1/17/05, Andre Matos wrote: > >Thanks Eric, but I can let it increment because I cannot have a gave in the > >numbers. I think I will need to use MAX() in this case. > > Using MAX() won't guarantee that you won't have gaps. >

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-17 Thread Andre Matos
Yes, I know about this. What I plan is to remove the auto_increment. I will do this by hand locking the entire table just right before inserting the field. Actually, it is running like this. I am just upgrading the PHP. I will keep the auto_increment in other tables that does not have this kind of

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-17 Thread Paul DuBois
At 21:27 -0500 1/17/05, Andre Matos wrote: Thanks Eric, but I can let it increment because I cannot have a gave in the numbers. I think I will need to use MAX() in this case. Using MAX() won't guarantee that you won't have gaps. What you're describing cannot be achieved in the general case. Conside

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-17 Thread Andre Matos
Thanks Eric, but I can let it increment because I cannot have a gave in the numbers. I think I will need to use MAX() in this case. Thanks. Andre On 1/17/05 8:14 PM, "Eric Bergen" <[EMAIL PROTECTED]> wrote: > Just let it increment. Keeping it incremented is MySQL's way ot > insuring that the

Re: Rollback and INSERT_ID() or LAST_INSERT_ID()

2005-01-17 Thread Eric Bergen
Just let it increment. Keeping it incremented is MySQL's way ot insuring that the same id doesn't get used twice for different records. It's doing everything correctly. -Eric On Mon, 17 Jan 2005 19:06:45 -0500, Andre Matos <[EMAIL PROTECTED]> wrote: > Hi List, > > I have a field in one of my tab

Re: Rollback

2004-01-02 Thread Aaron Wohl
You can add a version field to each row. Then add a seperate table with info with a list of the versions and a flag for deleted. Queries would look for each record that has the highest version number thats not deleted. Having a lot undo/redo info can get kind of complicated, especialy with multip

Re: Rollback

2004-01-02 Thread Frederic Wenzel
Am Fr, den 02.01.2004 schrieb karthikeyan.balasubramanian um 09:28: > Is there any alternative way to get back to the old state of the database? The only way I can think of is to dump the respective tables (e.g. every night) and re-import them when needed. Note that this can't be done by mysql

Re: Rollback

2004-01-02 Thread karthikeyan.balasubramanian
an" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 02, 2004 1:33 PM Subject: RE: Rollback > I'm fairly sure there is *no* way to do it. COMMIT says 'I want this data in > the database' not 'I think I want this data in the database' > &g

RE: Rollback

2004-01-02 Thread Chris
I'm fairly sure there is *no* way to do it. COMMIT says 'I want this data in the database' not 'I think I want this data in the database' Chris -Original Message- From: karthikeyan.balasubramanian [mailto:[EMAIL PROTECTED] Sent: Thursday, January 01, 2004 11:37 PM To: [EMAIL PROTECTED] Su

Re: rollback error

2003-11-16 Thread Peter Sap
y, November 14, 2003 4:54 PM Subject: Re: rollback error > Fernando <[EMAIL PROTECTED]> wrote: > > > > In version 3.23.57 when i do a rollback i get this error message and the changes are not undone, why? > > > > This is what i typed: (NOTE: 'insert.sql&#x

Re: rollback error

2003-11-14 Thread Victoria Reznichenko
Fernando <[EMAIL PROTECTED]> wrote: > > In version 3.23.57 when i do a rollback i get this error message and the changes are > not undone, why? > > This is what i typed: (NOTE: 'insert.sql' insert a row correctly in an InnoDB table) > > mysql> SET AUTOCOMMIT=0; > Query OK, 0 rows affected (0.00

Re: rollback segment

2003-08-14 Thread Heikki Tuuri
Susan, you had posted your message to the newsgroup mailing.database.mysql. That is only a mirror of the mailing list [EMAIL PROTECTED], where you should send your postings for them to be readable for all. InnoDB has a data structure which is equivalent to the 'rollback segment' of Oracle. But, c

RE: rollback a table?

2003-02-28 Thread John Griffin
Yes, Back up your data every night. Then you will only have to perform a single simple restore instead of rebuilding from four months ago. I know that this sounds like a smart ass reply but I am serious. Disk space is cheap. CD's are cheap. Other media like DVDs are getting cheaper every day. U

Re: rollback a table?

2003-02-27 Thread Daniel Kasak
Mark wrote: Hi, Something bad happened the other day, a query hosed all the data in my table, but luckily I had an original dump of the table from 4 months ago and binlogs from then on. I had to load the original table into a separate db and then grep through the binlogs for queries to update

Re: ROLLBACK not working in Red Hat Linux 7 but does in RedHat Linux 6.2 (MySQL3.23.33)

2001-02-25 Thread Tomi Junnila
* Irmund Thum <[EMAIL PROTECTED]> wrote on 25.02.01 17:20: > ERROR 1196: Warning: Some non-transactional changed tables couldn't be > rolled back > *** > so I'm not that expert knowing what "non-transactional changed tables" > exactly means You're probably using the RPM version or otherwise just

Re: ROLLBACK not working in Red Hat Linux 7 but does in RedHat Linux 6.2 (MySQL3.23.33)

2001-02-25 Thread Irmund Thum
[EMAIL PROTECTED] schrieb: > > create table bdbtest (pk int primary key, name varchar(20)) type=bdb; > begin; > insert into bdbtest values (1, 'tim'); > rollback; > select * from bdbtest; > (I see the row but should not) on RH7 I get *** mysql> select * from bdbtest; ++--+ | pk | name |