Raised This Month: $32 Target: $400
 8% 

Prepared insert statement doesn't work: false syntax error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gromit190
Junior Member
Join Date: Jun 2019
Old 11-25-2022 , 05:58   Prepared insert statement doesn't work: false syntax error?
Reply With Quote #1

Hello,

I am trying to use a prepared insert statement.

But when doing SQL_PrepareQuery, it returns null and the error I get is this:

Code:
ERROR:  syntax error at or near ","
LINE 1: insert into t_kill(c_foobar, c_asd) values(?, ?)
                                                    ^
But I don't get it. What is the syntax error here, exactly? This looks like valid postgres syntax to me... ?

I mean, comma is not allowed here?

Last edited by gromit190; 11-25-2022 at 05:58.
gromit190 is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 11-25-2022 , 06:10   Re: Prepared insert statement doesn't work: false syntax error?
Reply With Quote #2

Aren't you trying to do
insert into t_kill(c_foobar, c_asd) values('?', '?')
instead?
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode