diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-01-15 10:46:46 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-05-13 20:05:32 +0200 |
commit | ff7a0927e7f42e1007c93d13cfd84b46c25dc385 (patch) | |
tree | 530b3a79acb0dca7c485dc995713b67b82a579fb /dbaccess | |
parent | 3fe5f3c6f6e5f5bdfae65e287c2093f87cc68c6f (diff) |
tdf#153004: error when copying content to a table without autovalue primary key
In fact, hsql is well managed without extra code.
Change-Id: I93e2b02f3ec78e263cd0f9fab6e33b708dbd3f11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145525
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
(cherry picked from commit 9d2355b674d103fe8a73d2db716389980bb69e55)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151514
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/uno/copytablewizard.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx index c886995398a7..85000f2dc9f8 100644 --- a/dbaccess/source/ui/uno/copytablewizard.cxx +++ b/dbaccess/source/ui/uno/copytablewizard.cxx @@ -1361,7 +1361,7 @@ void CopyTableWizard::impl_doCopy_nothrow() OUString sDatabaseDest = xDestMetaData->getDatabaseProductName().toAsciiLowerCase(); // If we created a new primary key, then it won't necessarily be an IDENTITY column const bool bShouldCreatePrimaryKey = rWizard.shouldCreatePrimaryKey(); - if ( !bShouldCreatePrimaryKey && ((sDatabaseDest.indexOf("hsql") != -1) || (sDatabaseDest.indexOf("firebird") != -1)) ) + if ( !bShouldCreatePrimaryKey && (sDatabaseDest.indexOf("firebird") != -1) ) { const OUString sComposedTableName = ::dbtools::composeTableName( xDestMetaData, xTable, ::dbtools::EComposeRule::InDataManipulation, true ); |