List:MySQL++« Previous MessageNext Message »
From:Erwin Date:May 1 2005 9:01am
Subject:Small patch
View as plain text  
Hello,

I've found a small buglet in coldata.h, the type() method should be
const, but isn't. If you use something like row[i].type().sql_name(),
you get an 'passing this...discards qualifiers' error. That can be fixed
by adding 'const' to type(). Quite trivial...

Erwin

--- mysql++-1.7.34-orig/lib/coldata.h  2005-04-30 13:32:15.000000000 +0200
+++ mysql++-1.7.34/lib/coldata.h  2005-05-01 10:53:17.675023239 +0200
@@ -79,7 +79,7 @@
   ColData_Tmpl() { }

      /// \brief Get this object's current MySQL type.
      -  mysql_type_info type() { return _type; }
      +  mysql_type_info type() const { return _type; }

         /// \brief Returns true if data of this type should be quoted,
	 //false
	    /// otherwise.

-- 
erwin@stripped
Thread
Small patchErwin1 May
  • Re: Small patchWarren Young2 May