From 7ede90174abc1f98392e4d6f55168935bf1b9a3f Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Fri, 5 Apr 2013 13:14:27 +0200 Subject: [PATCH] [#2374] INSERT .. RETURNING always returns null for dynamically created tables - Reverted incorrect fix --- .../java/org/jooq/impl/AbstractStoreQuery.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractStoreQuery.java b/jOOQ/src/main/java/org/jooq/impl/AbstractStoreQuery.java index cea0b0ef2b..ec1bdd8ae4 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractStoreQuery.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractStoreQuery.java @@ -35,7 +35,6 @@ */ package org.jooq.impl; -import static org.jooq.impl.Utils.field; import static org.jooq.impl.Utils.fieldArray; import static org.jooq.util.sqlite.SQLiteFactory.rowid; @@ -384,21 +383,6 @@ abstract class AbstractStoreQuery extends AbstractQuery implem .where(field.in(ids)) .fetchInto(into); } - - // We don't have an identity, maybe because the table has been dynamically created - // with Factory#tableByName(). In that case return an "anonymous" result which contains - // the generated ids. - } else { - final Field idField = field(null); - final ResultImpl result = new ResultImpl(configuration, idField); - - for (final Object value : values) { - final Record record = Utils.newRecord(RecordImpl.class, new Field[] {idField}); - record.setValue(idField, value); - result.addRecord((R) record); - } - - returned = result; } } }