dbTalk Databases Forums  

Autoincrement results in a 0 value

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Autoincrement results in a 0 value in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gary Anderson
 
Posts: n/a

Default Autoincrement results in a 0 value - 11-20-2006 , 12:03 PM






--------------080606040003090105080201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I have the same table defined in multiple catalogs. The table contains
a primary key that is set to auto-increment. In some of the tables,
auto-increment works fine. In certain others, the table column that
should be auto-incrementing returns a 0 value. Can anyone help? The
tables are ISAM.

The table definition is: "CREATE TABLE version (refNo BIGINT NOT NULL
AUTO_INCREMENT, revYear INT NOT NULL, sequence INT NOT NULL, revDate
DATETIME, PRIMARY KEY (refNo), INDEX dateIdx(revDate), INDEX serNoIdx
(sequence)) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci

Thanks
Gary


--------------080606040003090105080201
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--------------080606040003090105080201--

Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Autoincrement results in a 0 value - 11-20-2006 , 01:29 PM






Gary Anderson wrote:
Quote:
I have the same table defined in multiple catalogs. The table contains
a primary key that is set to auto-increment. In some of the tables,
auto-increment works fine. In certain others, the table column that
should be auto-incrementing returns a 0 value. Can anyone help? The
tables are ISAM.
I would try inserting a row using the mysql command line utility. Based
on your report, I would expect that to also misbehave, which makes this
a MySQL problem, not a MySQL++ problem. If you can confine it to
MySQL++, that would be very interesting indeed.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.