confused...

2006-02-21 Thread Patrick Duda
Why, when I create a table as follows: mysql> create table requestid ( request_id int not null default 1, constraint requestid_innodb_pk_cons primary key(request_id) ) ENGINE=InnoDB; Query OK, 0 rows affected (0.02 sec) Do I get the following? mysql> select request_id from requestid

Re: InnoDB and locking

2006-02-10 Thread Patrick Duda
At 12:54 PM 2/10/2006, Mark Matthews wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick Duda wrote: > I guess I don't understand this locking stuff. I have a InnoDB table > that has one thing in it, a counter. All I want to do is have multiple > instances of the

Re: InnoDB and locking

2006-02-10 Thread Patrick Duda
At 10:52 AM 2/10/2006, [EMAIL PROTECTED] wrote: Patrick Duda <[EMAIL PROTECTED]> wrote on 10/02/2006 16:28:56: > I guess I don't understand this locking stuff. I have a InnoDB table that > has one thing in it, a counter. All I want to do is have multiple > instances o

InnoDB and locking

2006-02-10 Thread Patrick Duda
I guess I don't understand this locking stuff. I have a InnoDB table that has one thing in it, a counter. All I want to do is have multiple instances of the code read this counter and increment it. I want to make sure that each one is unique. Here is what I am doing in java: c.setAutoCommi

question about locking

2006-02-08 Thread Patrick Duda
Hi, I am running MySQL 4.0.1 with j/connector 3.1 and I am having problems trying to figure out why I am not getting the results I am expecting. I have a table that is used for generating primary keys. It only has one item, an int that is incremented each time a key is needed. This is not m