Skip to content

Commit 54cbe6e

Browse files
CHANGE: Bugfixes in ESQLTextArray
CHANGE: Updated Readme
1 parent 41c3e76 commit 54cbe6e

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ queried at a time can be set explicitly.
5252

5353
The following code
5454

55-
-- $ESQL_textArray("AND MY_COL IN ") $ESQL_textArray(2, "VALA", "VALB", "VALC", "VALD")
55+
-- $ESQL_text("AND MY_COL IN ") $ESQL_textArray(2, "VALA", "VALB", "VALC", "VALD")
5656
5757
Will result in two subqueries, with the first one having `AND MY_COL IN ('VALA', 'VALB')`.
5858

bin/sql_dumper_0.0.4.jar

26 KB
Binary file not shown.

src/main/java/sqldump/etl/esql/functions/ESQLTextArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static List<String> execute(String match, Log log) {
4646
// add all numbers in range
4747
for (int j = 1; j < (count+1);) {
4848
String superString = "(";
49-
for (int k = 0; k < blocksize && j <= (count+1); k++) {
49+
for (int k = 0; k < blocksize && j <= (count); k++) {
5050
String tempstr = values[j].toString();
5151
tempstr = tempstr.replace("\"", "'");
5252
if ((k + 1) < blocksize && (j + 1) < (count)) {

src/main/java/sqldump/log/Log.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void logLogo() {
307307
" / __/ __ \\ / / / _ \\__ ____ _ ___ ___ ____\n" +
308308
" _\\ \\/ /_/ / / /__ / // / // / ' \\/ _ \\/ -_) __/\n" +
309309
"/___/\\___\\_\\/____/ /____/\\_,_/_/_/_/ .__/\\__/_/ \n" +
310-
" /_/ v.0.0.3");
311-
System.out.print("(c) by Bernhard Schlegel, 2016-2017, github.com/BernhardSchlegel");
310+
" /_/ v.0.0.4");
311+
System.out.print("(c) by Bernhard Schlegel, 2016-2018, github.com/BernhardSchlegel");
312312
}
313313
}

0 commit comments

Comments
 (0)