Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.