link taos_static for tcodbc
This commit is contained in:
parent
79e7343495
commit
ef67b46901
|
@ -14,7 +14,7 @@ ENDIF ()
|
||||||
IF (TD_WINDOWS_64)
|
IF (TD_WINDOWS_64)
|
||||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /GL")
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /GL")
|
||||||
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL")
|
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL")
|
||||||
TARGET_LINK_LIBRARIES(tcodbc taos odbc32 odbccp32 user32 legacy_stdio_definitions os)
|
TARGET_LINK_LIBRARIES(tcodbc taos_static odbc32 odbccp32 user32 legacy_stdio_definitions os)
|
||||||
|
|
||||||
ADD_EXECUTABLE(tms main.cpp)
|
ADD_EXECUTABLE(tms main.cpp)
|
||||||
TARGET_LINK_LIBRARIES(tms odbc32)
|
TARGET_LINK_LIBRARIES(tms odbc32)
|
||||||
|
|
|
@ -707,7 +707,7 @@ static int do_taos_stmt(TAOS *taos, insert_arg_t *arg) {
|
||||||
const char *sql = "insert into test.v values (?,?,?,?,?)";
|
const char *sql = "insert into test.v values (?,?,?,?,?)";
|
||||||
int r = 0;
|
int r = 0;
|
||||||
do {
|
do {
|
||||||
r = taos_stmt_prepare(stmt, sql, strlen(sql));
|
r = taos_stmt_prepare(stmt, sql, (unsigned long)strlen(sql));
|
||||||
if (r) {
|
if (r) {
|
||||||
OD("taos_stmt_prepare [%s] failed: [%d]%s", sql, r, tstrerror(r));
|
OD("taos_stmt_prepare [%s] failed: [%d]%s", sql, r, tstrerror(r));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue