From dev-return-47306-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Aug 30 06:21:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E7A53180660 for ; Fri, 30 Aug 2019 08:21:04 +0200 (CEST) Received: (qmail 3345 invoked by uid 500); 30 Aug 2019 06:21:01 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 3318 invoked by uid 99); 30 Aug 2019 06:21:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2019 06:21:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BC2F5E2FE5 for ; Fri, 30 Aug 2019 06:21:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 34FEF780C7D for ; Fri, 30 Aug 2019 06:21:00 +0000 (UTC) Date: Fri, 30 Aug 2019 06:21:00 +0000 (UTC) From: "AH (Jira)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-12126) ODBC: SQLNumResultCols for prepared statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 AH created IGNITE-12126: --------------------------- Summary: ODBC: SQLNumResultCols for prepared statement Key: IGNITE-12126 URL: https://issues.apache.org/jira/browse/IGNITE-12126 Project: Ignite Issue Type: Bug Components: odbc Affects Versions: 2.7.5 Environment: Windows 7 Reporter: AH According to ODBC Programmer's Reference, SQLNumResultCols can be called su= ccessfully only when the statement is in the prepared, executed, or positio= ned state. However, it is not working when the statement is in the prepared state and = not yet executed: column count returned is 0. =C2=A0 Full Connect(Default) Env. Attr. SQL_ATTR_ODBC_VERSION set to SQL_OV_ODBC3 Successfully connected to DSN 'Apache Ignite DSN'. SQLExecDirect: In: Statementhandle =3D 0x005C3828,=20 StatementText =3D "SELECT * FROM M.I where 1 =3D 0", Statementlength =3D 3= 7 Return: SQL_SUCCESS=3D0 SQLNumResultCols: In: StatementHandle =3D 0x005C3828, ColumnCountPtr =3D 0x0061EDC8 Return: SQL_SUCCESS=3D0 Out: *ColumnCountPtr =3D 20 SQLPrepare: In: StatementHandle =3D 0x005C3828,=20 StatementText =3D "SELECT * FROM M.I where 1 =3D 0", TextLength =3D 37 Return: SQL_SUCCESS=3D0 SQLExecute: In: StatementHandle =3D 0x005C3828 Return: SQL_SUCCESS=3D0 SQLNumResultCols: In: StatementHandle =3D 0x005C3828, ColumnCountPtr =3D 0x0061EDC8 Return: SQL_SUCCESS=3D0 Out: *ColumnCountPtr =3D 20 =C2=A0 Not working: SQLPrepare: In: StatementHandle =3D 0x005C3828,=20 StatementText =3D "SELECT * FROM M.I where 1 =3D 0", TextLength =3D 37 Return: SQL_SUCCESS=3D0 SQLNumResultCols: In: StatementHandle =3D 0x005C3828, ColumnCountPtr =3D 0x0061EDC8 Return: SQL_SUCCESS=3D0 Out: *ColumnCountPtr =3D 0 -- This message was sent by Atlassian Jira (v8.3.2#803003)