dbaccess/source/ui/uno/copytablewizard.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 656fe420f0cb7d1c4f69f6aa5777c47eac90189f Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Jan 15 10:46:46 2023 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue May 9 10:00:27 2023 +0200 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 <serval2...@yahoo.fr> Tested-by: Jenkins (cherry picked from commit 9d2355b674d103fe8a73d2db716389980bb69e55) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151514 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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 );