Report this

What is the reason for this report?

SQL requests with double-quotes not working with managed database

Posted on January 25, 2020

I have a php app that successfully makes SQL requests against MySQL servers. Nevertheless the same app breaks against DO managed database whenever the requests include double-quotes.

The following request returns an error 1054 with managed database while it works with classic MySQL servers.

select * from users where username="demo" 
=> error 1054

select * from users where username='demo'
=> ok

Is there a way to configure DO managed database to accept double-quotes?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.