Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
c4a00eb9
提交
c4a00eb9
authored
11 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix formatting.
上级
2526201d
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
75 行增加
和
48 行删除
+75
-48
Query.java
h2/src/main/org/h2/command/dml/Query.java
+1
-1
ConnectionInfo.java
h2/src/main/org/h2/engine/ConnectionInfo.java
+3
-3
Engine.java
h2/src/main/org/h2/engine/Engine.java
+1
-1
FileStore.java
h2/src/main/org/h2/mvstore/FileStore.java
+3
-3
MVMap.java
h2/src/main/org/h2/mvstore/MVMap.java
+1
-1
MVStore.java
h2/src/main/org/h2/mvstore/MVStore.java
+8
-8
MVStoreTool.java
h2/src/main/org/h2/mvstore/MVStoreTool.java
+5
-5
Page.java
h2/src/main/org/h2/mvstore/Page.java
+1
-1
FilePathCache.java
h2/src/main/org/h2/mvstore/cache/FilePathCache.java
+1
-1
FileChannelInputStream.java
h2/src/main/org/h2/store/fs/FileChannelInputStream.java
+3
-3
FilePathZip.java
h2/src/main/org/h2/store/fs/FilePathZip.java
+1
-1
ChangeFileEncryption.java
h2/src/main/org/h2/tools/ChangeFileEncryption.java
+1
-1
ScriptReader.java
h2/src/main/org/h2/util/ScriptReader.java
+37
-11
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+4
-4
TestScript.java
h2/src/test/org/h2/test/db/TestScript.java
+1
-1
TestPreparedStatement.java
h2/src/test/org/h2/test/jdbc/TestPreparedStatement.java
+4
-3
没有找到文件。
h2/src/main/org/h2/command/dml/Query.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/ConnectionInfo.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/Engine.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/FileStore.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/MVMap.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/MVStore.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/MVStoreTool.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/Page.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/cache/FilePathCache.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/store/fs/FileChannelInputStream.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/store/fs/FilePathZip.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/tools/ChangeFileEncryption.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/util/ScriptReader.java
浏览文件 @
c4a00eb9
...
...
@@ -18,23 +18,49 @@ import org.h2.message.DbException;
* in comments and quotes.
*/
public
class
ScriptReader
{
private
final
Reader
reader
;
private
char
[]
buffer
;
/** position in the buffer of the next char to be read */
/**
* The position in the buffer of the next char to be read
*/
private
int
bufferPos
;
/** position in the buffer of the statement start */
/**
* The position in the buffer of the statement start
*/
private
int
bufferStart
=
-
1
;
/** position in the buffer of the last available char */
/**
* The position in the buffer of the last available char
*/
private
int
bufferEnd
;
/** true if we have read past the end of file */
/**
* True if we have read past the end of file
*/
private
boolean
endOfFile
;
/** true if we are inside a comment */
/**
* True if we are inside a comment
*/
private
boolean
insideRemark
;
/** Only valid if insideRemark is true. True if we are inside a block comment, false if we are inside a line comment */
/**
* Only valid if insideRemark is true. True if we are inside a block
* comment, false if we are inside a line comment
*/
private
boolean
blockRemark
;
/** true if comments should be skipped completely by this reader. */
/**
* True if comments should be skipped completely by this reader.
*/
private
boolean
skipRemarks
;
/** position in buffer of start of comment */
/**
* The position in buffer of start of comment
*/
private
int
remarkStart
;
/**
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/db/TestScript.java
浏览文件 @
c4a00eb9
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/jdbc/TestPreparedStatement.java
浏览文件 @
c4a00eb9
...
...
@@ -1170,7 +1170,8 @@ public class TestPreparedStatement extends TestBase {
}
private
void
testPreparedStatementWithLiteralsNone
()
throws
SQLException
{
// make sure that when the analyze table kicks in, it works with ALLOW_LITERALS=NONE
// make sure that when the analyze table kicks in,
// it works with ALLOW_LITERALS=NONE
deleteDb
(
"preparedStatement"
);
Connection
conn
=
getConnection
(
"preparedStatement;ANALYZE_AUTO=100"
);
conn
.
createStatement
().
execute
(
"SET ALLOW_LITERALS NONE"
);
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论