Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Won't Fix
-
1.1.4
-
None
-
None
-
Linux CentOS 7.2
Description
The mcsapi::ColumnStoreBulkInsert member funtion getColumnCount() always returns 0.
#include <libmcsapi/mcsapi.h>
|
#include <iostream>
|
|
|
int main(int argc, char *argv[]) |
{
|
mcsapi::ColumnStoreDriver* driver = nullptr;
|
mcsapi::ColumnStoreBulkInsert* bulk = nullptr;
|
|
|
try { |
driver = new mcsapi::ColumnStoreDriver(); |
bulk = driver->createBulkInsert("test", "t1", 0, 0); |
std::cout << "Num cols: " << bulk->getColumnCount() << std::endl; |
} catch (mcsapi::ColumnStoreError &e) { |
std::cout << "Error caught: " << e.what() << std::endl; |
}
|
delete bulk; |
delete driver; |
|
|
return 0; |
}
|
g++ `pkg-config libmcsapi --cflags` -std=c++11 bug.cpp `pkg-config libmcsapi --libs` -o bug
|
Assuming a table test.t1 with 1 column, running this program:
$ ./bug |
Num cols: 0
|