Menu
  • HOME
  • TAGS

Linking error using soci 3.2.3 instead of 3.2.2

c++,visual-c++,soci

The Solution was using the newest error corrected Soci library from github and not the stable download version. Bests...

MsgPack Woes - Destructor, pack_raw_body, Etc

c++,msgpack,soci

One of the quirks of the MsgPack API seems to have to do with the lifetime of the various MsgPack objects, as well as the objects/integral data types that are being packed into the MsgPack objects. The above code probably would have worked better if I had followed this idiom......

C++ linker error LNK2019 for soci ODBC

c++,visual-studio,linker,static-linking,soci

The answer was this (no hair left): I'm generating the solution using cmake with this: "Visual Studio 12 Win64" That means that I'm creting a Studio 12 2013 solution. I have previously installed Studio 11 2012 which had installed the x64 Cross Tools Command Prompt. It seems like Studio 2013...

COPY to remote databse from a local file

postgresql,sqlbulkcopy,soci

You're using the wrong path. This is a common source of errors. It's all about "from the viewpoint of the server." COPY with a file name instructs the PostgreSQL server to directly read from or write to a file. The file must be accessible by the PostgreSQL user (the user...

How to provide the values corresponding to the placeholders in soci?

c++,sql,soci

(As you have also asked this question on [email protected], I copied my answer from there). AFAIU, you want to pass vector<string> into query for, let's call it, vertical or column-wise expansion. AFAICT, it is not possible, vector<T> can be used with, again, horizontal or row-wise, expansion as a row data...