000124634
Greenplum ODBC driver - SQLPrepare fails with "Server returned 0 parameter count"
Information |
Title | Greenplum ODBC driver - SQLPrepare fails with "Server returned 0 parameter count" |
---|
URL Name | greenplum-odbc-driver-sqlprepare-fails-with-server-returned-0-parameter-count |
---|
Article Number | 000124634 |
---|
Environment | Product: Connect(64) for ODBC Greenplum Wire Protocol driver
Version: 07.16.0275 OS: All supported platforms Database: Greenplum Application: All supported applications |
---|
Question/Problem Description |
|
---|
Steps to Reproduce | In ODBC Test:
1. Connect to Greenplum DB that returns multiple vacuum warnings 2. Create this table: CREATE TABLE TEST_TABLE (col1 INTEGER NOT NULL) 3. Execute this statement (SQLExecDirect): SET search_path = test, pg_catalog 4. Execute this statement (SQLExecDirect): set enable_seqscan=off 5. Turn off autocommit SQLSetConnectAttr SQL_ATTR_AUTOCOMMIT=102 SQL_AUTOCOMMIT_OFF=0 6. Prepare this statement: SQLPrepare INSERT INTO TEST_TABLE(col1) VALUES ( ?) Observed results: SQLPrepare fails with SQL_ERROR and error “Server returned 0 parameter count." SQLPrepare: In: StatementHandle = 0x00000000005DB3F0, StatementText = "INSERT INTO TEST_TABLE(col1) VALUES ( ?)", TextLength = 46 Return: SQL_ERROR=-1 stmt: szSqlState = "42000", *pfNativeError = 0, *pcbErrorMsg = 83, *ColumnNumber = -1, *RowNumber = -1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver]Server returned 0 parameter count." stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 308, *ColumnNumber = -1, *RowNumber = -1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147482422 transactions (seg2 gplinux:18508 pid=24256)(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 308, *ColumnNumber = -1, *RowNumber = -1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147482418 transactions (seg1 gplinux:18507 pid=24254)(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" Expected results: SQLPrepare will return SQL_SUCCESS_WITH_INFO and 4 vacuum warnings will be returned. SQLPrepare: In: StatementHandle = 0x00000000005DB3F0, StatementText = "INSERT INTO TEST_TABLE(col1) VALUES ( ?)", TextLength = 46 Return: SQL_SUCCESS_WITH_INFO=1 stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 274, *ColumnNumber = 0, *RowNumber = 1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147481823 transactions(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 308, *ColumnNumber = 0, *RowNumber = 1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147460395 transactions (seg0 gplinux:18506 pid=24214)(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 308, *ColumnNumber = 0, *RowNumber = 1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147482420 transactions (seg1 gplinux:18507 pid=24216)(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" stmt: szSqlState = "01000", *pfNativeError = 46656, *pcbErrorMsg = 308, *ColumnNumber = 0, *RowNumber = 1 MessageText = "[DataDirect][ODBC Greenplum Wire Protocol driver][Greenplum]WARNING: database "postgres" must be vacuumed within 2147482424 transactions (seg2 gplinux:18508 pid=24218)(Hint To avoid a database shutdown, execute a full-database VACUUM in "postgres".; File varsup.c; Line 109; Routine GetNewTransactionId; )" |
---|
Clarifying Information |
---|
Error Message | [ODBC Greenplum Wire Protocol driver]Server returned 0 parameter count. |
---|
Defect Number | Defect 78090 |
---|
Enhancement Number |
---|
Cause |
|
---|
Resolution |
|
---|
Workaround |
---|
Notes |
---|
Last Modified Date | 11/20/2020 7:13 AM |
---|
Files |
Disclaimer |
The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information. Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages. |