Jump to content

MySQL Bug?


The Little Guy

Recommended Posts

this is a small bug I think I may have found....

 

When I run this query:

create table words (word_id int unsigned primary key auto_increment, word char(32));

 

it errors out saying that the table doesn't exist.

 

I then try this (changing "words" to "wrds"):

create table wrds (word_id int unsigned primary key auto_increment, word char(32));

 

it creates the table just fine

 

Next I run this:

rename table wrds to words;

 

It renames the table just fine.

 

So is it a bug that it couldn't create the table words but it can rename a table to words?

 

MySQL Version: 5.5.20-log

Link to comment
https://forums.phpfreaks.com/topic/265921-mysql-bug/
Share on other sites

It worked fine with this setup:

tim@tim-laptop:~$ mysql --version
mysql  Ver 14.14 Distrib 5.1.63, for debian-linux-gnu

 

mysql> create table words (word_id int unsigned primary key auto_increment, word char(32));
Query OK, 0 rows affected (0.13 sec)

mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| control        |
| testing        |
| words          |
+----------------+
3 rows in set (0.00 sec)


Link to comment
https://forums.phpfreaks.com/topic/265921-mysql-bug/#findComment-1362579
Share on other sites

mysql> select version();
+------------+
| version()  |
+------------+
| 5.5.20-log |
+------------+
1 row in set (0.00 sec)

mysql> use db
Database changed
mysql> create table words (word_id int unsigned primary key auto_increment, word char(32));
Query OK, 0 rows affected (0.06 sec)

Link to comment
https://forums.phpfreaks.com/topic/265921-mysql-bug/#findComment-1362618
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.