ERROR: there is no parameter $1

Поиск
Список
Период
Сортировка
От Kevin Jenkins
Тема ERROR: there is no parameter $1
Дата
Msg-id 4496C151.3090402@rakkar.org
обсуждение исходный текст
Ответ на Re: Question about openSSL  ("Dave Page" <dpage@vale-housing.co.uk>)
Ответы Re: ERROR: there is no parameter $1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

I'm using PQexecParams so I can upload filenames including path that
have '\' characters.  It works everywhere else I used it but not with
this query.

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.

Ideas?

В списке pgsql-general по дате отправления:

Предыдущее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: Adding foreign key constraints without integrity check?
Следующее
От: "Thomas Chille"
Дата:
Сообщение: simple query terminated by signal 11