| 244 | } |
| 245 | |
| 246 | SQLRETURN SQL_API SQLForeignKeys( |
| 247 | SQLHSTMT stmt, SQLWCHAR* pk_catalog_name, SQLSMALLINT pk_catalog_name_length, |
| 248 | SQLWCHAR* pk_schema_name, SQLSMALLINT pk_schema_name_length, SQLWCHAR* pk_table_name, |
| 249 | SQLSMALLINT pk_table_name_length, SQLWCHAR* fk_catalog_name, |
| 250 | SQLSMALLINT fk_catalog_name_length, SQLWCHAR* fk_schema_name, |
| 251 | SQLSMALLINT fk_schema_name_length, SQLWCHAR* fk_table_name, |
| 252 | SQLSMALLINT fk_table_name_length) { |
| 253 | ARROW_LOG(DEBUG) << "SQLForeignKeysW called with stmt: " << stmt |
| 254 | << ", pk_catalog_name: " << static_cast<const void*>(pk_catalog_name) |
| 255 | << ", pk_catalog_name_length: " << pk_catalog_name_length |
| 256 | << ", pk_schema_name: " << static_cast<const void*>(pk_schema_name) |
| 257 | << ", pk_schema_name_length: " << pk_schema_name_length |
| 258 | << ", pk_table_name: " << static_cast<const void*>(pk_table_name) |
| 259 | << ", pk_table_name_length: " << pk_table_name_length |
| 260 | << ", fk_catalog_name: " << static_cast<const void*>(fk_catalog_name) |
| 261 | << ", fk_catalog_name_length: " << fk_catalog_name_length |
| 262 | << ", fk_schema_name: " << static_cast<const void*>(fk_schema_name) |
| 263 | << ", fk_schema_name_length: " << fk_schema_name_length |
| 264 | << ", fk_table_name: " << static_cast<const void*>(fk_table_name) |
| 265 | << ", fk_table_name_length: " << fk_table_name_length; |
| 266 | return ODBC::ODBCStatement::ExecuteWithDiagnostics(stmt, SQL_ERROR, [=]() { |
| 267 | throw arrow::flight::sql::odbc::DriverException("SQLForeignKeysW is not implemented", |
| 268 | "IM001"); |
| 269 | return SQL_ERROR; |
| 270 | }); |
| 271 | } |
| 272 | |
| 273 | SQLRETURN SQL_API SQLGetTypeInfo(SQLHSTMT stmt, SQLSMALLINT data_type) { |
| 274 | return arrow::flight::sql::odbc::SQLGetTypeInfo(stmt, data_type); |
nothing calls this directly
no test coverage detected