dbaccess/source/ui/uno/copytablewizard.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9d2355b674d103fe8a73d2db716389980bb69e55 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Jan 15 10:46:46 2023 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Jan 15 10:36:20 2023 +0000 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 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 );