List:MySQL++« Previous MessageNext Message »
From:Russell Robinson Date:September 29 2008 1:09am
Subject:Bug: cannot insert a Null<sql_blob>
View as plain text  
Hi,

I'm using Mysql++ version 3.0.6.

There appears to be a in handling Null columns in SSQLS.

Attached is a sample program that will not compile (gcc-c++ 4.1.2-13).

The offending line is this:
	Null<sql_blob>, data);

If I change it to this:
	sql_blob, data)

it compiles.

The compile error is:

test.cpp:6: error: no match for ‘operator<<’ 
in ‘mysqlpp::operator<<(((std::ostream&)((std::basic_ostream<char, 
std::char_traits<char> >*)s)), 
obj->Test_value_list<mysqlpp::quote_type0>::manip) << ((const 
Test*)obj->Test_value_list<mysqlpp::quote_type0>::obj)->Test::data’

What's the workaround?

-- 
Russell Robinson (russellr@stripped)

Attachment: [text/x-c++src] test.cpp
Thread
Bug: cannot insert a Null<sql_blob>Russell Robinson29 Sep
  • Re: Bug: cannot insert a Null<sql_blob>Warren Young29 Sep