Libreoffice 7.6.2.1 with Firebird database on Ubuntu.
I am writing a macro in python that gives an error. The same code in Basic is working without problems.
When I use createStatement instead off prepareStatement there is no problem either.
The working code in Python:
stSql = "SELECT ""bedrijfsnaam"" FROM ""bedrijfsgegevens"""
statement = connection.createStatement()
oResult = statement.executeQuery(stSql)
The ‘error’ code in Python:
stSql = "SELECT ""bedrijfsnaam"" FROM ""bedrijfsgegevens"""
statement = connection.prepareStatement(stSql)
oResult = statement.executeQuery()
In the error code i get the message that table ‘bedrijfsgegevens’ is unknown.
Can someone help me to see the difference?
UPDATE: The error message:
ooo_script_framework.com.sun.star.sdbc.SQLException: firebird_sdbc error:
*Dynamic SQL Error
*SQL error code = -204
*Table unknown
*BEDRIJFSGEGEVENS
*At line 1, column 26
caused by
‘isc_dsql_prepare’
at /build/libreoffice/parts/libreoffice/build/connectivity/source/drivers/firebird/Util.cxx:69