Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit557de2a

Browse files
author
Hiroshi Inoue
committed
Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.
1 parenteb953c3 commit557de2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/interfaces/odbc/odbcapi30.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,12 @@ SQLBulkOperations(HSTMT hstmt, SQLSMALLINT operation)
526526
{
527527
staticchar*func="SQLBulkOperations";
528528
StatementClass*stmt= (StatementClass*)hstmt;
529+
#ifndefDRIVER_CURSOR_IMPLEMENT
530+
stmt->errornumber=STMT_NOT_IMPLEMENTED_ERROR;
531+
stmt->errormsg="driver must be compiled with the DRIVER_CURSOR_IMPLEMENT option";
532+
SC_log_error(func,"",stmt);
533+
returnSQL_ERROR;
534+
#else
529535
ARDFields*opts=SC_get_ARD(stmt);
530536
RETCODEret;
531537
UInt4offset,bind_size=opts->bind_size,*bmark;
@@ -586,4 +592,5 @@ SQL_AUTOCOMMIT_OFF);
586592
break;
587593
}
588594
returnret;
595+
#endif/* DRIVER_CURSOR_IMPLEMENT */
589596
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp