[teiid-commits] teiid SVN: r1754 - trunk/adminshell/src/main/resources/commands.
teiid-commits at lists.jboss.org
teiid-commits at lists.jboss.org
Tue Jan 19 15:28:35 EST 2010
Author: shawkins
Date: 2010-01-19 15:28:35 -0500 (Tue, 19 Jan 2010)
New Revision: 1754
Modified:
trunk/adminshell/src/main/resources/commands/mparse.bsh
Log:
TEIID-932 fix for adminshell parse handling of double quote characters.
Modified: trunk/adminshell/src/main/resources/commands/mparse.bsh
===================================================================
--- trunk/adminshell/src/main/resources/commands/mparse.bsh 2010-01-19 20:26:55 UTC (rev 1753)
+++ trunk/adminshell/src/main/resources/commands/mparse.bsh 2010-01-19 20:28:35 UTC (rev 1754)
@@ -9,7 +9,7 @@
boolean record = false;
if (str.endsWith(";") && str.matches("(select|insert|delete|update|exec|create|drop)\\W.+")){
- mmstr="execute(\""+orig_str.substring(0,orig_str.length()-1).replaceAll("\"", "\\\\\"") +"\");";
+ mmstr="execute(\""+orig_str.substring(0,orig_str.length()-1).replaceAll("\\\\", "\\\\\\\\").replaceAll("\"", "\\\\\"") +"\");";
record = true;
}
else if (str.matches("(help|exit|quit|dir|pwd)\\(?\\)?")) {
More information about the teiid-commits
mailing list