cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1357367 - /cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java
Date Wed, 04 Jul 2012 19:00:48 GMT
Author: aadamchik
Date: Wed Jul  4 19:00:47 2012
New Revision: 1357367

URL: http://svn.apache.org/viewvc?rev=1357367&view=rev
Log:
CAY-1689 [PATCH] LOB*QueryBuilders do not check isQuotingSQLIdentifiers

minor cleanup

(cherry picked from commit 0db8c5d3bcf19b51b7e700d19241835791405c90)

Modified:
    cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java

Modified: cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java?rev=1357367&r1=1357366&r2=1357367&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java
(original)
+++ cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/trans/LOBInsertBatchQueryBuilder.java
Wed Jul  4 19:00:47 2012
@@ -29,8 +29,6 @@ import org.apache.cayenne.dba.QuotingStr
 import org.apache.cayenne.map.DbAttribute;
 import org.apache.cayenne.query.BatchQuery;
 
-/**
- */
 public class LOBInsertBatchQueryBuilder extends LOBBatchQueryBuilder {
 
     public LOBInsertBatchQueryBuilder(DbAdapter adapter) {
@@ -56,7 +54,6 @@ public class LOBInsertBatchQueryBuilder 
 
 	@Override
 	public String createSqlString(BatchQuery batch) {
-		String table = batch.getDbEntity().getFullyQualifiedName();
 		List<DbAttribute> dbAttributes = batch.getDbAttributes();
 		boolean status;
 		if (batch.getDbEntity().getDataMap() != null && batch.getDbEntity().getDataMap().isQuotingSQLIdentifiers())
{
@@ -64,6 +61,7 @@ public class LOBInsertBatchQueryBuilder 
 		} else {
 			status = false;
 		}
+		
 		QuotingStrategy strategy = getAdapter().getQuotingStrategy(status);
 
 		StringBuffer query = new StringBuffer("INSERT INTO ");



Mime
View raw message