Witold E Wolski
2013-10-15 14:44:17 UTC
std::string p1 = "insert into sample(name, file, description )";
p1 += " values(:name,:file, :description)";
While this code WORKS for me.
sql_ << p1, use(name),
use(file),
use(description);
This one does not:
sql_ << p1, use(name,":name"),
use(file,":file"),
use(description,":description");
;
C++ exception with description "Cannot bind to (by name) ::name"
thrown in the test body.
Would really like to get version 2 working.
regards
p1 += " values(:name,:file, :description)";
While this code WORKS for me.
sql_ << p1, use(name),
use(file),
use(description);
This one does not:
sql_ << p1, use(name,":name"),
use(file,":file"),
use(description,":description");
;
C++ exception with description "Cannot bind to (by name) ::name"
thrown in the test body.
Would really like to get version 2 working.
regards
--
Witold Eryk Wolski
Witold Eryk Wolski