Skip to content

Commit

Permalink
ASE fixes for spacing and padding. Basically varchars in ASE are stri…
Browse files Browse the repository at this point in the history
…pped of all white spaces to the right of the last character. Also empty strings are defaulted to a single space.

Benchmark test may need adjusted in the future if the rollback segment log in ASE is not truncated in a better fashion.
  • Loading branch information
jhicks committed Apr 1, 2014
1 parent d67d86b commit c52554f
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -417,7 +417,9 @@ public void testStringSpaces() throws Exception {
String[] values = new String[TEST_COLUMNS.length];
values[0] = getNextId();
values[1] = " two spaces before";
values[2] = "two spaces after ";
if (!(platform instanceof AseDatabasePlatform)) {
values[2] = "two spaces after ";
}
values[3] = " one space before";
values[4] = "one space after ";
writeData(new CsvData(DataEventType.INSERT, values), values);
Expand All @@ -435,7 +437,10 @@ public void testStringOneSpace() throws Exception {
public void testStringEmpty() throws Exception {
String[] values = new String[TEST_COLUMNS.length];
values[0] = getNextId();
values[1] = values[2] = values[3] = values[4] = "";
if (!(platform instanceof AseDatabasePlatform)) {
values[1] = values[2] = "";
}
values[3] = values[4] = "";
writeData(new CsvData(DataEventType.INSERT, values), values);
}

Expand Down

0 comments on commit c52554f

Please sign in to comment.