diff options
-rw-r--r-- | dbaccess/source/filter/hsqldb/fbcreateparser.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx index 756b2bd3d445..edb3fcd6cc6f 100644 --- a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx +++ b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx @@ -184,7 +184,11 @@ OUString FbCreateStmtParser::compose() const // start with 0: // HSQLDB: first value will be 0. // Firebird: first value will be 1. - sSql.append(columnIter->getStartValue() - 1); + // but we can't put -1 for Firebird in case HSQLDB begins to 0 + sal_Int32 nStartValue = columnIter->getStartValue(); + if (nStartValue) + --nStartValue; + sSql.append(nStartValue); sSql.append(")"); } else if (!columnIter->isNullable()) |