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

Method CreateTestTable

cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc:384–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void ODBCMockTestBase::CreateTestTable() {
385 ASSERT_OK(mock_server->ExecuteSql(R"(
386 CREATE TABLE TestTable (
387 id INTEGER PRIMARY KEY AUTOINCREMENT,
388 keyName varchar(100),
389 value int);
390
391 INSERT INTO TestTable (keyName, value) VALUES ('One', 1);
392 INSERT INTO TestTable (keyName, value) VALUES ('Two', 0);
393 INSERT INTO TestTable (keyName, value) VALUES ('Three', -1);
394 )"));
395}
396
397void ODBCMockTestBase::DropTestTable() {
398 ASSERT_OK(mock_server->ExecuteSql("DROP TABLE TestTable;"));

Callers

nothing calls this directly

Calls 1

ExecuteSqlMethod · 0.45

Tested by

no test coverage detected