Skip to content

Commit

Permalink
Add psqlODBC test for sys.ntext (babelfish-for-postgresql#732)
Browse files Browse the repository at this point in the history
Add test case for sys.ntext.
Added required const to sys.nchar, sys.varchar, sys.bpchar.

TASK: BABELFISH-555
Signed-off-by: Toby Cao tobyc@bitquilltech.com
  • Loading branch information
HackonToby authored Oct 29, 2022
1 parent 38ede94 commit 928f844
Show file tree
Hide file tree
Showing 4 changed files with 370 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/odbc/psqlodbc/test_pg_bpchar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ const string COL2_NAME = "data";

const string DATATYPE = "sys.bpchar";

vector<pair<string, string>> TABLE_COLUMNS_1 = {
const vector<pair<string, string>> TABLE_COLUMNS_1 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(1)"}
};

vector<pair<string, string>> TABLE_COLUMNS_4000 = {
const vector<pair<string, string>> TABLE_COLUMNS_4000 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(4000)"}
};

vector<pair<string, string>> TABLE_COLUMNS_20 = {
const vector<pair<string, string>> TABLE_COLUMNS_20 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(20)"}
};
Expand Down
6 changes: 3 additions & 3 deletions test/odbc/psqlodbc/test_pg_nchar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ const string COL2_NAME = "data";

const string DATATYPE = "sys.nchar";

vector<pair<string, string>> TABLE_COLUMNS_1 = {
const vector<pair<string, string>> TABLE_COLUMNS_1 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(1)"}
};

vector<pair<string, string>> TABLE_COLUMNS_4000 = {
const vector<pair<string, string>> TABLE_COLUMNS_4000 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(4000)"}
};

vector<pair<string, string>> TABLE_COLUMNS_20 = {
const vector<pair<string, string>> TABLE_COLUMNS_20 = {
{COL1_NAME, " int PRIMARY KEY"},
{COL2_NAME, DATATYPE + "(20)"}
};
Expand Down
Loading

0 comments on commit 928f844

Please sign in to comment.