List:MySQL++« Previous MessageNext Message »
From:ZeeGeek Date:August 17 2005 3:13am
Subject:ColData conversion failed
View as plain text  
I was trying to convert a ColData to type string but got this compilation error:

error: conversion from `const mysqlpp::ColData' to non-scalar type
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
> ' requested

then I tried to convert it to Glib::ustring I got the same error. The
codes I used were

mysqlpp::Row row;
while (row = result.fetch_row()) {
        std::string content = row["item"];
        std::cout << content << std::endl;

Dell Inspiron 600m
Pentium-M 1.6G
512MB, 60G
ATI 9000 Mobility
ColData conversion failedZeeGeek17 Aug
  • Re: ColData conversion failedWarren Young17 Aug