Bug #5051 | GetSchema not working correctly | ||
---|---|---|---|
Submitted: | 14 Aug 2004 1:06 | Modified: | 26 Aug 2004 6:07 |
Reporter: | Matthew Aznoe | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | ByteFX 0.76 | OS: | Windows (Windows XP, MySQL 4.0.20) |
Assigned to: | Reggie Burnett | CPU Architecture: | Any |
[14 Aug 2004 1:06]
Matthew Aznoe
[26 Aug 2004 6:07]
Reggie Burnett
I was able to verify that IsUnique was not set right from GetSchema but was not able to reproduce your problem with auto increment, both against MySql 4.0 and 4.1 I have created a test case related to this bug however.
[20 Apr 2005 16:10]
Matt Bilek
I have the same problem with properties and get the same error message. I can recreate this problem at will.
[29 May 2006 0:45]
Darren Wurf
Hi, I'm still seeing this problem with MySql 5.0.18-nt and Connector/Net v1.0.6.15336 (WinXP Pro). Data type of the column (as described by DESCRIBE `tablename`) is: +-------------+------------------+------+-----+------------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+------------------+------+-----+------------+----------------+ | sched_id | int(10) unsigned | NO | PRI | NULL | auto_increment | +-------------+------------------+------+-----+------------+----------------+ Under C# .NET (v1.1), Columns["sched_id"].Unique == true (Appears to be fixed) Columns["sched_id"].AutoIncrement == false (Not fixed?) Manually setting AutoIncrement to true fixes the issue (but at 30 tables it starts to get painful :)