提交 c37ffc65 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 d68ce70b
......@@ -92,9 +92,21 @@ public class ErrorCode {
/**
* The error with code <code>22025</code> is thrown when using an invalid
* escape character sequence for LIKE or REGEXP. Example:
* escape character sequence for LIKE or REGEXP. The default escape
* character is '\'. When searching for the characters '%', '_' and the
* escape character, you need to prepend the escape character. That means if
* you want to search for the text '10%', you need to use LIKE '10\%'. If
* you want to search for 'C:\temp' you need to use 'C:\\temp'. The escape
* character can be changed using the ESCAPE clause as in LIKE '10+%' ESCAPE
* '+'. Example of wrong usage:
* <pre>
* CALL 'Hello' LIKE '1+' ESCAPE '+';
* CALL 'C:\temp' LIKE 'C:\temp';
* CALL '1+1' LIKE '1+1' ESCAPE '+';
* </pre>
* Correct:
* <pre>
* CALL 'C:\temp' LIKE 'C:\\temp';
* CALL '1+1' LIKE '1++1' ESCAPE '+';
* </pre>
*/
public static final int LIKE_ESCAPE_ERROR_1 = 22025;
......
......@@ -520,8 +520,9 @@ public abstract class Value {
switch(getType()) {
case JAVA_OBJECT:
case BLOB:
case UUID:
return ValueBytes.getNoCopy(getBytesNoCopy());
case UUID:
return ValueBytes.getNoCopy(getBytes());
}
break;
}
......
......@@ -159,6 +159,8 @@ java org.h2.test.TestAll timer
/*
a huge number of columns in each table
drop table t1;
drop table t2;
create table t1 (id int primary key);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论