summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-01-15 10:46:46 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-01-15 10:36:20 +0000
commit9d2355b674d103fe8a73d2db716389980bb69e55 (patch)
treeb7d3cdcb506050b76b73d704fbef027f79d0e474
parent4f0012b73cfabc039da4c78dc993abb42c9cf987 (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
-rw-r--r--dbaccess/source/ui/uno/copytablewizard.cxx2
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 );