[odb-users] Re: sqlite mismatch in result column count

Boris Kolpackov boris at codesynthesis.com
Mon Sep 14 09:35:47 EDT 2015


Hi,

MM <finjulhich at gmail.com> writes:

> The 4rd column (the missing one) is of type std::string in the c++ class
> (B1), and of type TEXT in the db.

You seem to be trying to map C++ classes to an existing schema. In this
case it is very helpful to still ask ODB to generate the schema and then
make sure that what gets generated is equivalent to the existing schema.

For SQLite, use '--generate-schema --schema-format sql' to get the
schema as a standalone .sql file.

Boris



More information about the odb-users mailing list