From a31fa57be8193fdc6c11064a019b0b0aa80c88dc Mon Sep 17 00:00:00 2001 From: lidongy <1879087903@qq.com> Date: Thu, 15 Dec 2022 11:27:37 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-86792=E3=80=90=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E3=80=91=E3=80=90=E9=85=8D=E7=BD=AE=E5=BA=93=E9=80=82=E9=85=8D?= =?UTF-8?q?GoldenDB=E3=80=91=E8=BF=81=E7=A7=BBGoldenDB=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hibernate/tool/schema/internal/StandardTableExporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java index 713717420..393dd2d71 100644 --- a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java +++ b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/StandardTableExporter.java @@ -147,6 +147,8 @@ public class StandardTableExporter implements Exporter { applyTableTypeString( buf ); + buf.append(table.getPrimaryKey().sqlDistributeString(dialect)); + List sqlStrings = new ArrayList(); sqlStrings.add( buf.toString() ); @@ -154,8 +156,6 @@ public class StandardTableExporter implements Exporter
{ applyInitCommands( table, sqlStrings ); - buf.append(table.getPrimaryKey().sqlDistributeString(dialect)); - return sqlStrings.toArray( new String[ sqlStrings.size() ] ); }