MCPcopy Create free account
hub / github.com/apache/arrow / SQLError

Function SQLError

cpp/src/arrow/flight/sql/odbc/entry_points.cc:90–95  ·  view source on GitHub ↗

macOS ODBC Driver Manager doesn't map SQLError to SQLGetDiagRec, so we need to implement SQLError for macOS. on Windows, SQLError mapping implemented by Driver Manager is preferred.

Source from the content-addressed store, hash-verified

88// implement SQLError for macOS.
89// on Windows, SQLError mapping implemented by Driver Manager is preferred.
90SQLRETURN SQL_API SQLError(SQLHENV env, SQLHDBC conn, SQLHSTMT stmt, SQLWCHAR* sql_state,
91 SQLINTEGER* native_error_ptr, SQLWCHAR* message_text,
92 SQLSMALLINT buffer_length, SQLSMALLINT* text_length_ptr) {
93 return arrow::flight::sql::odbc::SQLError(env, conn, stmt, sql_state, native_error_ptr,
94 message_text, buffer_length, text_length_ptr);
95}
96#endif // __APPLE__
97
98SQLRETURN SQL_API SQLGetEnvAttr(SQLHENV env, SQLINTEGER attr, SQLPOINTER value_ptr,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected