dbTalk Databases Forums  

NULL colums problem

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss NULL colums problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
didier tanti
 
Posts: n/a

Default NULL colums problem - 09-13-2005 , 03:09 AM






--0-1331641193-1126595379=:26626
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,
I upgraded from 1.7.0 to 1.7.40, and now i receive a BadTypeConv exception for my column of type TINY INT UNSIGNED (or others type) when they have the NULL values.

i know there are some changes on this side, related to the new Null class, but there is no samples how to use that. Do i need to change all my user code or could i custom the mysql++.lib to replace all colum containing a NULL value with a 0 (as it was done before)?

Regards

Didier




---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
--0-1331641193-1126595379=:26626--

Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: NULL colums problem - 09-13-2005 , 05:11 AM






On Tue, Sep 13, 2005 at 09:09:39AM +0200, didier tanti wrote:
Quote:
Hi,
I upgraded from 1.7.0 to 1.7.40, and now i receive a BadTypeConv
exception for my column of type TINY INT UNSIGNED (or others type)
when they have the NULL values.
There is no BadTypeConv exception in 1.7.40.

Can you get a backtrace of the exception when it happens?

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: NULL colums problem - 09-13-2005 , 09:56 AM



didier tanti wrote:
Quote:
I upgraded from 1.7.0
If you still have the tarball, I would like a copy for the archives. I
don't have any official tarballs older than 1.7.9 right now.

If anyone else has old versions of MySQL++, please send me a link.

Quote:
i receive a BadTypeConv exception
I think you mean either BadConversion, or BadNullConversion.

Quote:
i know there are some changes on this side, related to the new Null
class,
Yes. You need to wrap your existing C++ types in the Null template.
This is described in the Tutorial section of the documentation:

http://tangentsoft.net/mysql++/doc/userman/html/

I've updated the documentation to be clearer, so you might want to wait
to read this until 2.0.5 is released, later today. This aspect of the
library did not change in the v2.0 update, so that section of the
documentation is still relevant to 1.7.40.

P.S. I highly recommend that you update your code to 2.0.x. You're
already going to have to make a lot of changes to make it work with
1.7.40. You might as well get completely up to date.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.