MySql C++ connector getString() doesn't work correctly, while getInt works perfectly

后端 未结 4 2019
轻奢々
轻奢々 2021-01-20 04:18

I tried to connect C++ to MySql and I just can\'t get this to work properly. I used latest MySql and C++/Connector for Windows from Oracle site. I also use VS2010.

4条回答
  •  暖寄归人
    2021-01-20 04:50

    Are you sure task-column doesn't have the binary collation set? If so, the connector may return different metadata for the same column.

    Update:

    Also, check that the Connector has been compiled with the same runtime as your project. If using VS, I bet the other one was compiled with /MT and the other with /MD. This way, they use different heaps and it won't work.

提交回复
热议问题