Re: prepareAndExecute with UPSERT not working

2016-04-17 Thread Josh Elser
What version of Phoenix are you using? Plamen Paskov wrote: Hey folks, I'm trying to UPSERT some data via the json api but no luck for now. My requests looks like: { "request": "openConnection", "connectionId": "6" } { "request": "createStatement", "connectionId": "6" } { "request":

Re: prepareAndExecute with UPSERT not working

2016-04-14 Thread Steve Terrell
I found it much easier and reliable to make my own phoenix HTTP server with my own JSON API. It was too confusing for me to send multiple requests for what would normally be just one SQL statement. And I had problems getting upserts working, to boot (even with the thin server). Now I can make

prepareAndExecute with UPSERT not working

2016-04-14 Thread Plamen Paskov
Hey folks, I'm trying to UPSERT some data via the json api but no luck for now. My requests looks like: { "request": "openConnection", "connectionId": "6" } { "request": "createStatement", "connectionId": "6" } { "request": "prepareAndExecute", "connectionId": "6",