|
From: SVN by r. <sv...@ca...> - 2009-12-17 21:55:29
|
Author: roy
Date: 2009-12-17 22:55:16 +0100 (Thu, 17 Dec 2009)
New Revision: 446
Modified:
src/main/java/nl/improved/sqlclient/commands/DumpCommand.java
Log:
fixes in skipping characters
Modified: src/main/java/nl/improved/sqlclient/commands/DumpCommand.java
===================================================================
--- src/main/java/nl/improved/sqlclient/commands/DumpCommand.java 2009-12-17 15:59:15 UTC (rev 445)
+++ src/main/java/nl/improved/sqlclient/commands/DumpCommand.java 2009-12-17 21:55:16 UTC (rev 446)
@@ -248,16 +248,24 @@
int index = 0;
for (int i = 0; i < chars.length(); i++) {
ch[index] = chars.charAt(i);
- if (ch[index] != 19 && ch[index] != 24 && ch[index] != 25 && ch[index] != 26
- && ch[index] != 27) {
+ if (ch[index] < 8) {
+ continue;
+ }
+ if (ch[index] >= 11 && ch[index] <= 31 ) {
+ continue;
+ }
+ if (ch[index] >= 11 && ch[index] <= 31 ) {
if (ch[index] == 28 || ch[index] == 29) {
ch[index]='\'';
warnings++;
index++;
- } else {
- index++;
}
+ continue;
}
+ if (ch[index] >= 127 && ch[index] <= 159 ) {
+ continue;
+ }
+ index++;
}
if (index == chars.length()) {
return ch;
|