Summary | 2_nag_upgrade_autoincrement.php error with MySQL |
Queue | Nag |
Queue Version | Git master |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | mrubinsk (at) horde (dot) org |
Requester | jan (at) horde (dot) org |
Created | 11/04/2010 (5330 days ago) |
Due | |
Updated | 11/04/2010 (5330 days ago) |
Assigned | 11/04/2010 (5330 days ago) |
Resolved | 11/04/2010 (5330 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
have a default value different than NULL.
is not really NULL.
http://bugs.mysql.com/bug.php?id=34198
I think the point is that there *is* no default value for that field.
Not sure where the '0' came from.
State ⇒ Not A Bug
a default value different than NULL.
+-----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| share_id | int(11) | NO | PRI | 0 | |
The install I haven't migrated yet shows 'NULL' there, as does the
install I have run a fresh install on.
+-----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| share_id | int(11) | NO | PRI | 0 | |
| share_name | varchar(255) | NO | MUL | | |
| share_owner | varchar(255) | YES | MUL | NULL | |
| share_flags | smallint(6) | NO | | 0 | |
| perm_creator | smallint(6) | NO | MUL | 0 | |
| perm_default | smallint(6) | NO | MUL | 0 | |
| perm_guest | smallint(6) | NO | MUL | 0 | |
| attribute_name | varchar(255) | NO | | | |
| attribute_desc | varchar(255) | YES | | NULL | |
| attribute_color | varchar(7) | YES | | NULL | |
+-----------------+--------------+------+-----+---------+-------+
State ⇒ Feedback
table. I don't see where the share_id field would even have a default
value either. What does DESCRIBE show?
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ 2_nag_upgrade_autoincrement.php error with MySQL
Queue ⇒ Nag
Assigned to Michael Rubinsky
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
integer, array(null => false, autoincrement => true))
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid
default value for 'share_id'