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

Function SQLPrimaryKeys

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

Source from the content-addressed store, hash-verified

296}
297
298SQLRETURN SQL_API SQLPrimaryKeys(SQLHSTMT stmt, SQLWCHAR* catalog_name,
299 SQLSMALLINT catalog_name_length, SQLWCHAR* schema_name,
300 SQLSMALLINT schema_name_length, SQLWCHAR* table_name,
301 SQLSMALLINT table_name_length) {
302 ARROW_LOG(DEBUG) << "SQLPrimaryKeysW called with stmt: " << stmt
303 << ", catalog_name: " << static_cast<const void*>(catalog_name)
304 << ", catalog_name_length: " << catalog_name_length
305 << ", schema_name: " << static_cast<const void*>(schema_name)
306 << ", schema_name_length: " << schema_name_length
307 << ", table_name: " << static_cast<const void*>(table_name)
308 << ", table_name_length: " << table_name_length;
309 return ODBC::ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() {
310 throw arrow::flight::sql::odbc::DriverException("SQLPrimaryKeysW is not implemented",
311 "IM001");
312 return SQL_ERROR;
313 });
314}
315
316SQLRETURN SQL_API SQLSetStmtAttr(SQLHSTMT stmt, SQLINTEGER attribute,
317 SQLPOINTER value_ptr, SQLINTEGER stringLength) {

Callers

nothing calls this directly

Calls 1

DriverExceptionClass · 0.85

Tested by

no test coverage detected