| From: | Clemens Ladisch <clemens(at)ladisch(dot)de> |
|---|---|
| To: | pgsql-odbc(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Why this code fails |
| Date: | 2018-09-26 07:47:41 |
| Message-ID: | fe9b8ef0-1a60-4669-2417-459de0d6554f@ladisch.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Inoue, Hiroshi | 2018-09-26 13:18:04 | Re: Use of undocumented functions |
| Previous Message | Igor Korot | 2018-09-26 02:35:31 | Why this code fails |