server_detect incorrectly thinks drizzle built in May is MySQL
Bug #781472 reported by
Stewart Smith
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Critical
|
Stewart Smith |
Bug Description
<stewart> boost::regex mysql_regex(
boost::regex drizzle_
and....
(gdb) p version
$6 = {static npos = <optimized out>,
_M_dataplus = {<std::
mtaylor, i.e. the mysql regex matches :)
Related branches
lp:~stewart/drizzle/bug781472
- Drizzle Merge Team: Pending requested
-
Diff: 35 lines (+9/-9)1 file modifiedclient/server_detect.h (+9/-9)
Changed in drizzle: | |
status: | Confirmed → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
we get failures such as: working/ tests/r/ drizzle_ client. result 2011-05-11 13:54:50.892823000 +0300 working/ tests/r/ drizzle_ client. reject 2011-05-11 18:27:54.806908265 +0300 -+---+- -----+ -+---+- -----+ --+---- -----+- -----+- ------- -+----- ------- -----+- ------- ---+ --+---- -----+- -----+- ------- -+----- ------- -----+- ------- ---+ --+---- -----+- -----+- ------- -+----- ------- -----+- ------- ---+
main.drizzle_client [ fail ]
--- /ssd/drizzle/
+++ /ssd/drizzle/
@@ -40,9 +40,9 @@
i j k
NULL 1 NULL
Field Type Null Default Default_is_NULL On_Update
-i INTEGER YES YES
-j INTEGER NO NO
-k INTEGER YES YES
+i INTEGER 1 1
+j INTEGER 0 0
+k INTEGER 1 1
+-----
| i | j | k |
+-----
@@ -51,9 +51,9 @@
+-----
| Field | Type | Null | Default | Default_is_NULL | On_Update |
+-----
-| i | INTEGER | YES | | YES | |
-| j | INTEGER | NO | | NO | |
-| k | INTEGER | YES | | YES | |
+| i | INTEGER | 1 | | 1 | |
+| j | INTEGER | 0 | | 0 | |
+| k | INTEGER | 1 | | 1 | |
+-----
i s1
1 x
@@ -75,13 +75,13 @@
+-------------+
create table t1(a int, b varchar(255), c int);
Field Type Null Default Default_is_NULL On_Update
-a INTEGER YES YES
-b VARCHAR YES YES
-c INTEGER YES YES
+a INTEGER 1 1
+b VARCHAR 1 1
+c INTEGER 1 1
Field Type Null Default Default_is_NULL On_Update
-a INTEGER YES YES
-b VARCHAR YES YES
-c INTEGER YES YES
+a INTEGER 1 1
+b VARCHAR 1 1
+c INTEGER 1 1
drop table t1;
1
1