At 5:08 PM -0400 6/24/99, Technische Dienst wrote:
>I didn't include any bug script info etc. cuz I don't think it's
>relevant in this case. If it is please let me know and I'll get it.
>Anyways here's my bug.
>create table a (MyNum int(5) zerofill not null primary key);
>gives me: Query OK, 0 rows affected (0.00) sec and the table is created.
>now if the drop the table and change the sequence? a lil like this:
>create table a (MyNum int(5) not null zerofill primary key);
>gives me: ERROR 1064: You have an error in your SQL syntax near
>'zerofill primary key)' at line 1.
>it also does this without the primary key, so i think it's safe to
>say that if you give zerofill before not null it will work but if
>you do not null first and then zerofill you get an error.
That's correct. You can't put the keywords in just any order and
expect it to work. Check the CREATE TABLE section in the MySQL
reference manual, the syntax disallows your second statement.
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/
|• Bug? Report||Technische Dienst||24 Jun|
| • Re: Bug? Report||Paul DuBois||24 Jun|