List:MySQL++« Previous MessageNext Message »
From:Sheng Yu Date:May 31 2006 3:42pm
Subject:Error in using mysqlpp::sql_datetime
View as plain text  
Like in "stock.h", I create my own struct using
"sql_create_6(task, 2, 6,
	mysqlpp::sql_int_unsigned, uid,
	mysqlpp::sql_datetime, stime,
	mysqlpp::sql_bigint_unsigned, cid,
	mysqlpp::sql_tinyint_unsigned, op,
	mysqlpp::sql_blob, text,
	mysqlpp::sql_tinyint, done)"
But there are compiling errors,
"f:\code\server\serverroutine\mysql++\include\stream2string.h(47) :
error C2039: 'out_stream' : is not a member of 'mysqlpp::DTbase<T>'
        with
        [
            T=mysqlpp::DateTime
        ]
        f:\code\server\serverroutine\mysql++\include\datetime.h(61) :
see reference to function template instantiation 'Strng
mysqlpp::stream2string<std::string,mysqlpp::DTbase<T>>(const
mysqlpp::DTbase<T> &)' being compiled
        with
        [
            Strng=std::string,
            T=mysqlpp::DateTime
        ]
        f:\code\server\serverroutine\mysql++\include\datetime.h(60) :
while compiling class template member function
'mysqlpp::DTbase<T>::operator std::string(void) const'
        with
        [
            T=mysqlpp::DateTime
        ]
        f:\code\server\serverroutine\mysql++\include\datetime.h(113) :
see reference to class template instantiation 'mysqlpp::DTbase<T>'
being compiled
        with
        [
            T=mysqlpp::DateTime
        ]
"

Could someone tell me how to use sql_datetime in 'sql_create_' macros?
Thread
Error in using mysqlpp::sql_datetimeSheng Yu31 May
  • Re: Error in using mysqlpp::sql_datetimeWarren Young1 Jun
    • Re: Error in using mysqlpp::sql_datetimeSheng Yu2 Jun
      • Re: Error in using mysqlpp::sql_datetimeWarren Young3 Jun