Re: ERROR: there is no parameter $1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Jenkins <gameprogrammer(at)rakkar(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: there is no parameter $1
Date: 2006-06-19 18:42:07
Message-ID: 20540.1150742527@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kevin Jenkins <gameprogrammer(at)rakkar(dot)org> writes:
> I get ERROR: there is no parameter $1.

> INSERT INTO FileVersionHistory(applicationID, filename, createFile,
> changeSetID, userName) VALUES (1,$1::text,FALSE,9,'postgres');

> outTemp[0]=deletedFiles.fileList[fileListIndex].filename;
> outLengths[0]=strlen(deletedFiles.fileList[fileListIndex].filename);
> formats[0]=0;
> result = PQexecParams(pgConn, query,1,0,outTemp,outLengths,formats,0);

> There obviously is a $1 parameter.

Hm, nothing obviously wrong there. What PG version is this exactly?
Can you supply a self-contained test case?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message louis gonzales 2006-06-19 19:29:16 Re: Adding foreign key constraints without integrity check?
Previous Message Thomas Chille 2006-06-19 17:06:09 simple query terminated by signal 11