提交 13973361 authored 作者: noelgrandin's avatar noelgrandin

Issue 521: ScriptReader should implement Closeable

上级 bcf93904
...@@ -30,6 +30,7 @@ Change Log ...@@ -30,6 +30,7 @@ Change Log
</li><li>Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection </li><li>Issue 517: Create or replace view statement has no effect on the others already existing JDBC connection
</li><li>Support 123L syntax as in Java; example: SELECT (2000000000L*2). </li><li>Support 123L syntax as in Java; example: SELECT (2000000000L*2).
</li><li>Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler. </li><li>Issue 520: Add support for sequence max value, min value and cycle, patch by Daniel Gredler.
</li><li>Issue 521: ScriptReader should implement Closeable
</li></ul> </li></ul>
<h2>Version 1.3.174 (2013-10-19)</h2> <h2>Version 1.3.174 (2013-10-19)</h2>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
package org.h2.util; package org.h2.util;
import java.io.Closeable;
import java.io.IOException; import java.io.IOException;
import java.io.Reader; import java.io.Reader;
import java.util.Arrays; import java.util.Arrays;
...@@ -17,7 +18,7 @@ import org.h2.message.DbException; ...@@ -17,7 +18,7 @@ import org.h2.message.DbException;
* Each SQL statement ends with the character ';', however it is ignored * Each SQL statement ends with the character ';', however it is ignored
* in comments and quotes. * in comments and quotes.
*/ */
public class ScriptReader { public class ScriptReader implements Closeable {
private final Reader reader; private final Reader reader;
private char[] buffer; private char[] buffer;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论