Skip to content

Commit

Permalink
sqlrun: TokenizerStrategy: logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrugz committed Oct 23, 2024
1 parent e31793f commit 2f7cc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src_run/tbrugz/sqldump/sqlrun/tokenzr/TokenizerStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ else if(STMT_PARSER_TOKENIZER_CLASS.equals(tokenizer)) {
}
}

@SuppressWarnings("deprecation")
public static Tokenizer getTokenizer(TokenizerStrategy tokenizerStrategy, File file, String inputEncoding, boolean escapeBackslashedApos, boolean split) throws IOException {
//log.debug("getTokenizer: strategy="+tokenizerStrategy+" ; charset = "+inputEncoding);
if(!split) {
Expand All @@ -91,6 +92,7 @@ public static Tokenizer getTokenizer(TokenizerStrategy tokenizerStrategy, File f
case STMT_TOKENIZER:
return new SQLStmtTokenizer(fileStr);
case STRING_SPLITTER:
log.warn("Strategy "+tokenizerStrategy+" is deprecated");
return new StringSpliter(fileStr);
//case NO_TOKENIZER:
// return new NoSplitTokenizer(fileStr);
Expand Down
1 change: 0 additions & 1 deletion src_test/tbrugz/sqldump/sqlrun/SQLTokenizersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.junit.Assert;
import org.junit.Assume;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
Expand Down

0 comments on commit 2f7cc7b

Please sign in to comment.