Re: Why this code fails

Поиск
Список
Период
Сортировка
От Clemens Ladisch
Тема Re: Why this code fails
Дата
Msg-id fe9b8ef0-1a60-4669-2417-459de0d6554f@ladisch.de
обсуждение исходный текст
Ответ на Why this code fails  (Igor Korot <ikorot01@gmail.com>)
Список pgsql-odbc
Igor Korot wrote:
> Following code fails with the error "Invalid column nuber in DescribeCol".
>
>     std::wstring query = L"SHOW log_directory";
>     ret = SQLPrepare( m_hstmt, qry, SQL_NTS );
>     ret = SQLDescribeCol( m_hstmt, 1, columnName, 256, &columnNameLen, &columnDataType, &columnDataSize,
&columnDataDigits,&columnDataNullable );
 

So SQLNumResultCols() does not return the correct count, either?

I suspect the "Parse Statements" ODBC driver option is enabled.
Does it work if you disable that option, or if you call SQLExecute() before,
or if you use SQLExecDirect()?


Regards,
Clemens


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

Предыдущее
От: Igor Korot
Дата:
Сообщение: Why this code fails
Следующее
От: "Inoue, Hiroshi"
Дата:
Сообщение: Re: Use of undocumented functions