Importing SQL script results in silent failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
High
|
Andrew Hutchings |
Bug Description
Importing a SQL script produced by drizzledump seems to result in an error, but not one that is presented to the user:
root@mcp:~# drizzle -p3307 moocowproductions < out.sql
root@mcp:~# echo $?
141
root@mcp:~#
The import only gets to about 5 of the 20 or so tables. drizzledump, however, does exit with a human readable error:
root@mcp:~# drizzledump -p3306 -uroot -Ppwd mcptest --destination-
-- drizzledump 2010.09.1802 libdrizzle 7, for pc-linux-gnu (x86_64)
--
-- Host: localhost Database: mcptest
-- -------
-- Server version 5.1.41-3ubuntu12.6 (MySQL server)
Error executing query: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'farm'),('5','The Bridge','The Bridge was my first back to raytracing project. I ' at line 1
Error executing query: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '2007-10-26 05:24:19','Paul McCullagh','','http://
Related branches
- Drizzle Developers: Pending requested
-
Diff: 407 lines (+51/-37)10 files modifiedclient/drizzle.cc (+2/-2)
drizzled/drizzled.cc (+3/-3)
libdrizzle/common.h (+1/-0)
libdrizzle/conn.c (+1/-1)
libdrizzle/drizzle.c (+5/-0)
plugin/mysql_protocol/mysql_protocol.cc (+2/-2)
plugin/mysql_protocol/net_serv.cc (+10/-2)
tests/r/func_compress.result (+1/-1)
tests/r/func_str.result (+25/-25)
tests/r/union.result (+1/-1)
Changed in drizzle: | |
assignee: | nobody → Andrew Hutchings (linuxjedi) |
Changed in drizzle: | |
importance: | Undecided → Medium |
milestone: | none → 2010-10-25 |
status: | New → In Progress |
Hmm, I would have thought our randgen testing would have caught something
like this :-/
However, thanks for the bug - and letting me know I need to tweak my test :
)
On Thu, Oct 7, 2010 at 6:50 PM, m00dawg <email address hidden> wrote:
> Public bug reported: type=database --destination- port=3307 database= moocowproductio ns ------- ------- ------- ------- ------- ------- ----- www.blobstreami ng.org' ),('56' ,'' at line 1 /bugs.launchpad .net/bugs/ 656577 type=database --destination- port=3307 database= moocowproductio ns ------- ------- ------- ------- ------- ------- ----- www.blobstreami ng.org' ),('56' ,'' at line 1
>
> Importing a SQL script produced by drizzledump seems to result in an
> error, but not one that is presented to the user:
>
> root@mcp:~# drizzle -p3307 moocowproductions < out.sql
> root@mcp:~# echo $?
> 141
> root@mcp:~#
>
> The import only gets to about 5 of the 20 or so tables. drizzledump,
> however, does exit with a human readable error:
>
> root@mcp:~# drizzledump -p3306 -uroot -Ppwd mcptest
> --destination-
> --destination-
> -- drizzledump 2010.09.1802 libdrizzle 7, for pc-linux-gnu (x86_64)
> --
> -- Host: localhost Database: mcptest
> -- -------
> -- Server version 5.1.41-3ubuntu12.6 (MySQL server)
>
> Error executing query: You have an error in your SQL syntax; check the
> manual that corresponds to your Drizzle server version for the right syntax
> to use near 'farm'),('5','The Bridge','The Bridge was my first back to
> raytracing project. I ' at line 1
> Error executing query: You have an error in your SQL syntax; check the
> manual that corresponds to your Drizzle server version for the right syntax
> to use near '2007-10-26 05:24:19','Paul McCullagh','','
> http://
>
> ** Affects: drizzle
> Importance: Undecided
> Status: New
>
> --
> Importing SQL script results in silent failure
> https:/
> You received this bug notification because you are a member of Drizzle-
> developers, which is subscribed to Drizzle.
>
> Status in A Lightweight SQL Database for Cloud Infrastructure and Web
> Applications: New
>
> Bug description:
> Importing a SQL script produced by drizzledump seems to result in an error,
> but not one that is presented to the user:
>
> root@mcp:~# drizzle -p3307 moocowproductions < out.sql
> root@mcp:~# echo $?
> 141
> root@mcp:~#
>
> The import only gets to about 5 of the 20 or so tables. drizzledump,
> however, does exit with a human readable error:
>
> root@mcp:~# drizzledump -p3306 -uroot -Ppwd mcptest
> --destination-
> --destination-
> -- drizzledump 2010.09.1802 libdrizzle 7, for pc-linux-gnu (x86_64)
> --
> -- Host: localhost Database: mcptest
> -- -------
> -- Server version 5.1.41-3ubuntu12.6 (MySQL server)
>
> Error executing query: You have an error in your SQL syntax; check the
> manual that corresponds to your Drizzle server version for the right syntax
> to use near 'farm'),('5','The Bridge','The Bridge was my first back to
> raytracing project. I ' at line 1
> Error executing query: You have an error in your SQL syntax; check the
> manual that corresponds to your Drizzle server version for the right syntax
> to use near '2007-10-26 05:24:19','Paul McCullagh','','
> http://
>
>
...