Postgres error on Environment.php
Issue #24
resolved
i'm trying to use your extension but i can't because i'm getting this error:
An exception occurred while executing 'nnrestapi_sessions': SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "nnrestapi_sessions" LINE 1: nnrestapi_sessions ^
I found this on /nnrestapi/Classes/Utilities/Environment.php:
line 29. if ($connection->fetchAll("SHOW TABLES like '{$tableName}'")) {
but Postgres don't have show tables,
Comments (2)
-
-
- changed status to resolved
Closing this due to missing feedback. If this error still exists, a new workaround is now to disable the PreCheck in the Extension Configuration of nnrestapi (see Fix Issue
#26Add possibility to deactivate Warnings and Error messages). - Log in to comment
Unfortunatly we do not have a testsystem with PostgreSQL installed. Could you try replacing the
databaseTableExists()
method discribed above with following code?Let me know, if it works.
If not, could you debug
$result
for me?THX!