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

Function CheckRemoteSQLColumns

cpp/src/arrow/flight/sql/odbc/tests/columns_test.cc:111–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void CheckRemoteSQLColumns(
112 SQLHSTMT stmt, const std::wstring& expected_schema,
113 const std::wstring& expected_table, const std::wstring& expected_column,
114 const SQLINTEGER& expected_data_type, const std::wstring& expected_type_name,
115 const SQLINTEGER& expected_column_size, const SQLINTEGER& expected_buffer_length,
116 const SQLSMALLINT& expected_decimal_digits,
117 const SQLSMALLINT& expected_num_prec_radix, const SQLSMALLINT& expected_nullable,
118 const SQLSMALLINT& expected_sql_data_type, const SQLSMALLINT& expected_date_time_sub,
119 const SQLINTEGER& expected_octet_char_length,
120 const SQLINTEGER& expected_ordinal_position,
121 const std::wstring& expected_is_nullable) {
122 CheckNullColumnW(stmt, 1); // catalog
123 CheckStringColumnW(stmt, 2, expected_schema); // schema
124 CheckSQLColumns(stmt, expected_table, expected_column, expected_data_type,
125 expected_type_name, expected_column_size, expected_buffer_length,
126 expected_decimal_digits, expected_num_prec_radix, expected_nullable,
127 expected_sql_data_type, expected_date_time_sub,
128 expected_octet_char_length, expected_ordinal_position,
129 expected_is_nullable);
130}
131#endif // __linux__
132
133void CheckSQLColAttribute(SQLHSTMT stmt, SQLUSMALLINT idx,

Callers 1

TEST_FFunction · 0.85

Calls 3

CheckNullColumnWFunction · 0.85
CheckStringColumnWFunction · 0.85
CheckSQLColumnsFunction · 0.85

Tested by

no test coverage detected