There is only one settings page for Retool DB where you can enable the Disable converting queries to prepared statements option. While using other environments than the default production I get errors with queries that need that setting turned on. It is clear that SQL injection protection is turned on here as staging environment uses prepared queries.
Hey @dobatovkin! Thanks for the report, I was able to reproduce the issue and have submitted a bug report / feature request to be able to turn off prepared statements for RetoolDB environments other than production. I'll update this post when I have any additional information.
Hey @First4Figures. In the meantime you can use the following workaround: you can add your retool db as Postgres database connection in Retool Resources and disable prepared statements from its settings.
Thank you @dobatovkin - Unfortunately it's not working setting up the connection. Connection string required sslmode=require and even if I specify in the connection options it won't connect.
@First4Figures If you remove sslmode=require from the connection string and instead click the Use SSL/TLS checkbox (at the bottom of the screenshot you provided), it should work.
Hi all! I'm happy to report we are currently addressing this underlying issue and should hopefully be able to share an update on the timing of the fix in the coming weeks!