Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Subject: Re: Patch: Nullable fields in SQLSS

Subject: Re: Patch: Nullable fields in SQLSS

2007-11-05       - By Warren Young

 Back
Waba wrote:
> Here is my patch that enables one to use nullable fields in SQLSS.

So it's only 21 months since you posted this, but it's applied now. :)

Not even close to applied as-is, but I hope I've kept the purpose and
spirit of the patch intact.  Some of the differences are because of
changes in the library infrastructure since the v2.0 days when you
created this patch.  You took MySQL++ to task for ColData deriving from
std::string, for example, which is no longer true in v3.

Another reason for differences is because I thought I had a better way
to get some things done.  The biggest example here is the dancing around
you had to do to make it compile after changing DateTime's ctors to be
templatized for anything that looks like a std::string instead of having
explicit ctors for std::string and ColData.  I took the ctor change
idea, which was sound, but made the new templatized ctor explicit.  This
avoided the dancing around at the expense of implicit conversions of
string to DateTime.  Like many implicit conversion ideas, it sounds good
on paper until you see all the demented ways the compiler has for making
use of this freedom. :)

Anyone reading this who wants to use Null<T> types in SSQLSes: please
try this and report to the list if it doesn't work.  This is a very
invasive patch, and I'm not convinced it's completely kosher.  You can
check out the svn version of MySQL++ like so:

  svn co svn://svn.gna.org/svn/mysqlpp/trunk mysqlp

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=mysql@(protected)