Changeset: ddd27e285426 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ddd27e285426
Modified Files:
java/src/nl/cwi/monetdb/mcl/io/BufferedMCLReader.java
Branch: Dec2011
Log Message:
readLine: (3rd time) finally get the SQLSTATE regex right
diffs (12 lines):
diff --git a/java/src/nl/cwi/monetdb/mcl/io/BufferedMCLReader.java
b/java/src/nl/cwi/monetdb/mcl/io/BufferedMCLReader.java
--- a/java/src/nl/cwi/monetdb/mcl/io/BufferedMCLReader.java
+++ b/java/src/nl/cwi/monetdb/mcl/io/BufferedMCLReader.java
@@ -113,7 +113,7 @@ public class BufferedMCLReader extends B
public String readLine() throws IOException {
String r = super.readLine();
setLineType(r);
- if (lineType == ERROR && !r.matches("^![0-9A-Z]{5}:"))
+ if (lineType == ERROR && !r.matches("^![0-9A-Z]{5}:.+"))
r = "!22000:" + r.substring(1);
return(r);
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list