Browse Source

Fix table name quoting for append and make table queries. fixes patch #17

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@900 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/jackcess-2.0.8
James Ahlborn 9 years ago
parent
commit
2e461c270a

+ 1
- 0
pom.xml View File

<configuration> <configuration>
<issueLinkTemplatePerSystem> <issueLinkTemplatePerSystem>
<SourceForge2Features>http://sourceforge.net/p/jackcess/feature-requests/%ISSUE%</SourceForge2Features> <SourceForge2Features>http://sourceforge.net/p/jackcess/feature-requests/%ISSUE%</SourceForge2Features>
<SourceForge2Patches>http://sourceforge.net/p/jackcess/patches/%ISSUE%</SourceForge2Patches>
</issueLinkTemplatePerSystem> </issueLinkTemplatePerSystem>
</configuration> </configuration>
<reportSets> <reportSets>

+ 3
- 0
src/changes/changes.xml View File

<action dev="jahlborn" type="fix" system="SourceForge2" issue="113"> <action dev="jahlborn" type="fix" system="SourceForge2" issue="113">
Add newer sql type to access type mappings if the jvm supports them. Add newer sql type to access type mappings if the jvm supports them.
</action> </action>
<action dev="jahlborn" type="fix" system="SourceForge2Patches" issue="17">
Fix table name quoting for append and make table queries.
</action>
</release> </release>
<release version="2.0.7" date="2014-11-22"> <release version="2.0.7" date="2014-11-22">
<action dev="jahlborn" type="fix" system="SourceForge2" issue="111"> <action dev="jahlborn" type="fix" system="SourceForge2" issue="111">

+ 2
- 1
src/main/java/com/healthmarketscience/jackcess/impl/query/AppendQueryImpl.java View File

@Override @Override
protected void toSQLString(StringBuilder builder) protected void toSQLString(StringBuilder builder)
{ {
builder.append("INSERT INTO ").append(getTargetTable());
builder.append("INSERT INTO ");
toOptionalQuotedExpr(builder, getTargetTable(), true);
toRemoteDb(builder, getRemoteDbPath(), getRemoteDbType()); toRemoteDb(builder, getRemoteDbPath(), getRemoteDbType());
builder.append(NEWLINE); builder.append(NEWLINE);
List<String> values = getValues(); List<String> values = getValues();

+ 2
- 1
src/main/java/com/healthmarketscience/jackcess/impl/query/MakeTableQueryImpl.java View File

@Override @Override
protected void toSelectInto(StringBuilder builder) protected void toSelectInto(StringBuilder builder)
{ {
builder.append(" INTO ").append(getTargetTable());
builder.append(" INTO ");
toOptionalQuotedExpr(builder, getTargetTable(), true);
toRemoteDb(builder, getRemoteDbPath(), getRemoteDbType()); toRemoteDb(builder, getRemoteDbPath(), getRemoteDbType());
} }



Loading…
Cancel
Save