regression test could not execute with visual studio 2019

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

regression test could not execute with visual studio 2019

kato-sho@fujitsu.com
Hi,

I tried to test psqlODBC using visual studio 2019.
However, I could not compile test code.
Could you tell me how to test?

psqlODBC version: 13.00.0000
OS: Windows server 2019
postgresql version: 13.1

Build results are as follows.

PS E:\source\psqlodbc\winbuild> .\regress.ps1 -P x64
vcversion=16.0 toolset=v142
** testing unicode driver **

  regress_one.vcxproj -> E:\source\psqlodbc\winbuild\.\test_x64\exe\cte-test.exe
  deprecated-test.c
E:\source\psqlodbc\test\src\deprecated-test.c(119,7): error C4996: 'SQLSetConnectOption': ODBC API: SQLSetConnectOption
 is deprecated. Please use SQLSetConnectAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(124,7): error C4996: 'SQLGetConnectOption': ODBC API: SQLGetConnectOption
 is deprecated. Please use SQLGetConnectAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(149,2): error C4996: 'SQLSetParam': ODBC API: SQLSetParam is deprecated.
Please use SQLBindParameter instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(167,7): error C4996: 'SQLGetStmtOption': ODBC API: SQLGetStmtOption is de
precated. Please use SQLGetStmtAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(173,7): error C4996: 'SQLSetStmtOption': ODBC API: SQLSetStmtOption is de
precated. Please use SQLSetStmtAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(175,7): error C4996: 'SQLGetStmtOption': ODBC API: SQLGetStmtOption is de
precated. Please use SQLGetStmtAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
E:\source\psqlodbc\test\src\deprecated-test.c(186,7): error C4996: 'SQLGetStmtOption': ODBC API: SQLGetStmtOption is de
precated. Please use SQLGetStmtAttr instead. [E:\source\psqlodbc\winbuild\regress_one.vcxproj]
Compile error
発生場所 E:\source\psqlodbc\winbuild\regress.ps1:386 文字:3
+         throw "`nCompile error"
+         ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (
Compile error:String) [], RuntimeException
    + FullyQualifiedErrorId :
Compile error

regards,
sho kato