提交 be45032b authored 作者: Noel Grandin's avatar Noel Grandin

Fix bug in LinkSchema tool when object exists with same name in different schemas

problem report and fix by lubomir.benes on the  h2 mailing list
上级 3219fd40
...@@ -21,6 +21,8 @@ Change Log ...@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Fix bug in LinkSchema tool when object exists with same name in different schemas
</li>
<li>Issue #675: Fix date operations on Locales with non-Gregorian calendars <li>Issue #675: Fix date operations on Locales with non-Gregorian calendars
</li> </li>
<li>Fix removal of LOB when rolling back transaction on a table containing more than one LOB column. <li>Fix removal of LOB when rolling back transaction on a table containing more than one LOB column.
......
...@@ -10,7 +10,6 @@ import java.sql.ResultSet; ...@@ -10,7 +10,6 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.sql.Types; import java.sql.Types;
import org.h2.message.DbException; import org.h2.message.DbException;
import org.h2.tools.SimpleResultSet; import org.h2.tools.SimpleResultSet;
import org.h2.util.JdbcUtils; import org.h2.util.JdbcUtils;
...@@ -81,6 +80,8 @@ public class LinkSchema { ...@@ -81,6 +80,8 @@ public class LinkSchema {
append(", "). append(", ").
append(StringUtils.quoteStringSQL(password)). append(StringUtils.quoteStringSQL(password)).
append(", "). append(", ").
append(StringUtils.quoteStringSQL(sourceSchema)).
append(", ").
append(StringUtils.quoteStringSQL(table)). append(StringUtils.quoteStringSQL(table)).
append(')'); append(')');
stat.execute(buff.toString()); stat.execute(buff.toString());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论