Обсуждение: EXEC SQL type RDBBLOB is bytea; ecpg ERROR: invalid datatype 'bytea'

Поиск
Список
Период
Сортировка

EXEC SQL type RDBBLOB is bytea; ecpg ERROR: invalid datatype 'bytea'

От
"Reid Thompson"
Дата:

Does ecpg not recognize bytea as a datatype?

using ecpg v 2.9, POSTGRESQL v 7.2.3

the line
   
EXEC SQL type RDBBLOB is bytea;

results in the error

ERROR: invalid datatype 'bytea'

I've amended my code to

EXEC SQL type RDBBLOB is struct {
    int        len;
    char       buf[1];
};

to get around the error message.

Reid Thompson      (919)872-1275 ext.4960
ateb, Inc.         www.ateb.com