linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #03256
[Bug 911638] Re: sql_perror() has off-by-one error leading to dropped out_of_bounds exception and other nasty instead of a sensible error message
** Branch linked: lp:~stewart/drizzle/bug911638
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/911638
Title:
sql_perror() has off-by-one error leading to dropped out_of_bounds
exception and other nasty instead of a sensible error message
Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
Fix Committed
Bug description:
need this:
--- drizzled/errmsg_print.cc 2011-10-20 02:45:57 +0000
+++ drizzled/errmsg_print.cc 2012-01-04 07:10:40 +0000
@@ -74,7 +74,7 @@ void sql_perror(std::string message, con
if (not extra.empty())
{
- if (message.at(message.size()) != ' ')
+ if (message.at(message.size()-1) != ' ')
message+= " ";
message+= "'";
e.g. in transaction_log tests, if it couldn't open the transaction.log - you'd get a odd DRIZZLE_ABORT error message instead of "could not open file"
To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/911638/+subscriptions
References