Public bug reported:

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"

** Affects: drizzle
     Importance: Low
     Assignee: Stewart Smith (stewart)
         Status: Fix Committed

** Changed in: drizzle
       Status: New => Fix Committed

** Changed in: drizzle
   Importance: Undecided => Low

** Changed in: drizzle
     Assignee: (unassigned) => Stewart Smith (stewart)

-- 
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

-- 
Mailing list: https://launchpad.net/~linux-traipu
Post to     : linux-traipu@lists.launchpad.net
Unsubscribe : https://launchpad.net/~linux-traipu
More help   : https://help.launchpad.net/ListHelp

Reply via email to