Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caHLQ-00058t-La for pgsql-odbc@arkaria.postgresql.org; Sun, 05 Feb 2017 07:34:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1caHLP-0004Js-UW for pgsql-odbc@arkaria.postgresql.org; Sun, 05 Feb 2017 07:34:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1caHLO-0004Jd-6H for pgsql-odbc@postgresql.org; Sun, 05 Feb 2017 07:34:42 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1caHLG-0006jT-H2 for pgsql-odbc@postgresql.org; Sun, 05 Feb 2017 07:34:40 +0000 Received: by mail-wm0-x242.google.com with SMTP id r18so14511629wmd.3 for ; Sat, 04 Feb 2017 23:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=t7GupEBTvXoFA1H0bRA4ZRcgsfDqzxatz9G+vf2rboU=; b=QfIRO1eh4NfWLx4t2DwZDKR9sbp/lxU23i+8aVYJUGoIoYdOfWkmaboSWB3tyzXPkt lI+Q3Tp+HNa0IYA6FOCs7NImR2RIo32VvjKsowGoesu+WafjU7wDckBrpwn9lBe/JnKJ 1Lf0jj9ErNtqMUjqv5lgKdUNDJ/zi6sGtY9NsuwfBc1HVN05H3gpz1MEdVRwCjvR/guR kP07dodVO+8nDqf3Y53UFBNOmmKpT7d3esKJrgwnCgP+sj/sVBGldOpDKrsLzk7nxsjB 8ca+5gmlTRbKARojzHtQHhQcp16S2eXg24IYK40h5Tgqg6FiqzrhJV8QzSlepl2iXHhh PpcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=t7GupEBTvXoFA1H0bRA4ZRcgsfDqzxatz9G+vf2rboU=; b=XFBYJf5ti0SXels7o4lOBifBkb9u2n3Q09FojyanNr2QvDqjknsIeeurZ9hk8Yeq9r xltVctRB3DiTZC3oOtLfswt7pQVHNiJiU2SGPHbQepS+fksxZVpKxtgOKsprqPnSlbpt 7tLo+fVMj34+RNTJA35A7P5H950KoC6lt/W+gHaEUZAd4yGP04Is0fjujKT1Q3+hfEMZ 5p6xeOD3oSwQ+YBrOJ1AEzq8iO1UUYdkQliZmfor6hGZJTwMMTlsh749GQR3WdgusR5M kXNhb9C+Wi+mxdvJD3yqnI69nw5D2w+IVLFTwPO6g5kSIoad7Kx4jy9hxzuv6pOd20oj i1eg== X-Gm-Message-State: AMke39nXXgYKXW+4Ax+d80lbFccV8B4EQpgeFyRoo5hTkaWVt+MkgCinChXgB4dMj8PmFQ== X-Received: by 10.28.22.146 with SMTP id 140mr3832310wmw.22.1486280071294; Sat, 04 Feb 2017 23:34:31 -0800 (PST) Received: from minibagroff.mega ([88.201.150.44]) by smtp.gmail.com with ESMTPSA id i15sm6178469wmf.21.2017.02.04.23.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2017 23:34:30 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [HY000] no error information; Error while preparing parameters From: Daniil Megrabyan In-Reply-To: Date: Sun, 5 Feb 2017 10:34:27 +0300 Cc: pgsql-odbc@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <4C08BA12-B60A-4A91-B45A-E56E767C86CE@gmail.com> References: <8f2bbaf9-1cd1-a6ec-997d-6b97a06e0bf4@dream.email.ne.jp> <73DCCC79-F070-4E60-BFE9-C8E700850986@gmail.com> To: "Inoue, Hiroshi" X-Mailer: Apple Mail (2.3259) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org > 5 =D1=84=D0=B5=D0=B2=D1=80. 2017 =D0=B3., =D0=B2 3:26, Inoue, Hiroshi =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > Thanks. > Unfortunately I can't reproduce your case. >=20 > Though I found a suspicious place thanks to the mylog you sent, there is = not enough > information in the log unfortunately. >=20 > Could you build the drivers from source? I have built from the latest sources and got the same stuff. But! I=E2=80= =99ve noticed another error occurred before =E2=80=94 driver manager blames= encoding and UTF8-data becomes a question mark. odbc trace: Exit:[SQL_SUCCESS] [ODBC][43276][1486279223.490067][SQLAllocHandle.c][540] Entry: Handle Type =3D 3 Input Handle =3D 0x10286c200 [ODBC][43276][1486279223.490282][SQLAllocHandle.c][1085] Exit:[SQL_SUCCESS] Output Handle =3D 0x10101ca00 [ODBC][43276][1486279223.490374][SQLSetStmtAttr.c][265] Entry: Statement =3D 0x10101ca00 Attribute =3D SQL_ATTR_CURSOR_TYPE Value =3D 0x1 StrLen =3D 0 [ODBC][43276][1486279223.490567][SQLSetStmtAttr.c][928] Exit:[SQL_SUCCESS] [ODBC][43276][1486279223.490748][SQLPrepare.c][196] Entry: Statement =3D 0x10101ca00 SQL =3D [INSERT INTO Core_TextMessage(message_id, text)=20 VALUES(32, '?')=20 ][length =3D 65 (SQL_NTS)] [ODBC][43276][1486279223.490868][SQLPrepare.c][377] Exit:[SQL_SUCCESS] [ODBC][43276][1486279223.491009][SQLExecute.c][187] Entry: Statement =3D 0x10101ca00 [ODBC][43276][1486279223.531171][SQLExecute.c][357] Exit:[SQL_ERROR] DIAG [22021] ERROR: invalid byte sequence for encoding "UTF8": 0xd0 0x27; Error while preparing parameters [ODBC][43276][1486279223.531656][SQLFreeHandle.c][381] Entry: Handle Type =3D 3 Input Handle =3D 0x10101ca00 [ODBC][43276][1486279223.532054][SQLFreeHandle.c][494] mylog: [123145375444992][[SQLAllocHandle]][123145375444992]PGAPI_AllocStmt: enteri= ng... [123145375444992]**** PGAPI_AllocStmt: hdbc =3D 0x1030a3200, stmt =3D 0x101= 000600 [123145375444992]CC_add_statement: self=3D0x1030a3200, stmt=3D0x101000600 [123145375444992][[SQLGetStmtAttr]] Handle=3D16778752 10010 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x101000600 10010 [123145375444992][[SQLGetStmtAttr]] Handle=3D16778752 10011 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x101000600 10011 [123145375444992][[SQLGetStmtAttr]] Handle=3D16778752 10012 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x101000600 10012 [123145375444992][[SQLGetStmtAttr]] Handle=3D16778752 10013 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x101000600 10013 [123145375444992][[SQLSetStmtAttr]] Handle=3D0x101000600 6,1 [123145375444992]PGAPI_SetStmtAttr Handle=3D0x101000600 6,1(0x1) [123145375444992]PGAPI_SetStmtOption: entering... [123145375444992]SetStmtOption(): SQL_CURSOR_TYPE =3D 1 [123145375444992]->= 1 [123145375444992][SQLPrepare][123145375444992]PGAPI_Prepare: entering... [123145375444992]**** PGAPI_Prepare: STMT_ALLOCATED, copy [123145375444992][SQLExecute][123145375444992]PGAPI_Execute: entering...1 [123145375444992]PGAPI_Execute: clear errors... [123145375444992]PGAPI_NumParams: entering... [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]prepareParameters was not called, prepare state:7 [123145375444992]SC_recycle_statement: self=3D 0x101000600 [123145375444992]PDATA_free_params: ENTER, self=3D0x101000938 [123145375444992]Exec_with_parameters_resolved: copying statement params: t= rans_status=3D1, len=3D65, stmt=3D'INSERT INTO Core_TextMessage(message_id,= text)=20 VALUES(32, '?')=20 ' [123145375444992] stmt_with_params =3D '(null)' [123145375444992]about to begin SC_execute [123145375444992]libpq_bind_and_exec: bind stmt=3D0x101000600 [123145375444992]libpq_bind_and_exec: execute stmt=3D0x101000600 [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]process_statements:parsed for the first command length=3D-= 1(-1) num_p=3D0 [123145375444992]ParseAndDescribeWithLibpq: plan_name=3D_PLAN0x101000600 qu= ery=3DINSERT INTO Core_TextMessage(message_id, text)=20 VALUES(32, '?')=20 [123145375444992]in QR_Constructor [123145375444992]exit QR_Constructor [123145375444992]ParseWithLibpq: plan_name=3D_PLAN0x101000600 query=3DINSER= T INTO Core_TextMessage(message_id, text)=20 VALUES(32, '?')=20 [123145375444992]error message len=3D59 [123145375444992]SC_set_Result(1000600, 93b160)[123145375444992]QResult: en= ter DESTRUCTOR [123145375444992]STATEMENT ERROR: func=3Ddesc_params_and_sync, desc=3D'', e= rrnum=3D1, errmsg=3D'Error while preparing parameters' [123145375444992]CONN ERROR: func=3Ddesc_params_and_sync, desc=3D'', errnum= =3D110, errmsg=3D'(NULL)' [123145375444992]CC_on_abort in [123145375444992]retval=3D-1 [123145375444992][[SQLGetDiagRec]] [123145375444992]PGAPI_GetDiagRec entering type=3D3 rec=3D1 [123145375444992]ER_ReturnError: status =3D 1, msg =3D #ERROR: invalid byte= sequence for encoding "UTF8": 0xd0 0x27; Error while preparing parameters# [123145375444992] szSqlState =3D '22021',len=3D93, szError=3D'ERROR: i= nvalid byte sequence for encoding "UTF8": 0xd0 0x27; Error while preparing parameters' [123145375444992]PGAPI_GetDiagRec exiting 0 [123145375444992][[SQLGetDiagRec]] [123145375444992]PGAPI_GetDiagRec entering type=3D3 rec=3D2 [123145375444992]ER_ReturnError: status =3D 1, msg =3D #ERROR: invalid byte= sequence for encoding "UTF8": 0xd0 0x27; Error while preparing parameters# [123145375444992]PGAPI_GetDiagRec exiting 100 [123145375444992][[SQLFreeHandle]][123145375444992]PGAPI_FreeStmt: entering= ...hstmt=3D0x101000600, fOption=3D1 [123145375444992]QResult: enter DESTRUCTOR [123145375444992]QResult: in QR_close_result [123145375444992]QResult: free memory in, fcount=3D0 [123145375444992]QResult: free memory out [123145375444992]QResult: exit close_result [123145375444992]QResult: exit DESTRUCTOR [123145375444992]SC_init_Result(1000600)[123145375444992]SC_Destructor: sel= f=3D0x101000600, self->result=3D0x0, self->hdbc=3D0x1030a3200 [123145375444992]APD_free_params: ENTER, self=3D0x1010007d0 [123145375444992]IPD_free_params: ENTER, self=3D0x101000840 [123145375444992]PDATA_free_params: ENTER, self=3D0x101000938 [123145375444992]SC_Destructor: EXIT [123145375444992][[SQLAllocHandle]][123145375444992]PGAPI_AllocStmt: enteri= ng... [123145375444992]**** PGAPI_AllocStmt: hdbc =3D 0x1030a3200, stmt =3D 0x101= 01ca00 [123145375444992]CC_add_statement: self=3D0x1030a3200, stmt=3D0x10101ca00 [123145375444992][[SQLGetStmtAttr]] Handle=3D16894464 10010 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x10101ca00 10010 [123145375444992][[SQLGetStmtAttr]] Handle=3D16894464 10011 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x10101ca00 10011 [123145375444992][[SQLGetStmtAttr]] Handle=3D16894464 10012 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x10101ca00 10012 [123145375444992][[SQLGetStmtAttr]] Handle=3D16894464 10013 [123145375444992]PGAPI_GetStmtAttr Handle=3D0x10101ca00 10013 [123145375444992][[SQLSetStmtAttr]] Handle=3D0x10101ca00 6,1 [123145375444992]PGAPI_SetStmtAttr Handle=3D0x10101ca00 6,1(0x1) [123145375444992]PGAPI_SetStmtOption: entering... [123145375444992]SetStmtOption(): SQL_CURSOR_TYPE =3D 1 [123145375444992]->= 1 [123145375444992][SQLPrepare][123145375444992]PGAPI_Prepare: entering... [123145375444992]**** PGAPI_Prepare: STMT_ALLOCATED, copy [123145375444992][SQLExecute][123145375444992]PGAPI_Execute: entering...1 [123145375444992]PGAPI_Execute: clear errors... [123145375444992]PGAPI_NumParams: entering... [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]prepareParameters was not called, prepare state:7 [123145375444992]SC_recycle_statement: self=3D 0x10101ca00 [123145375444992]PDATA_free_params: ENTER, self=3D0x10101cd38 [123145375444992]Exec_with_parameters_resolved: copying statement params: t= rans_status=3D1, len=3D109, stmt=3D'INSERT INTO Core_Message(channel_id, da= te, member_id, reply_id)=20 VALUES(25, '2017-02-05 10:20:38', 4, NULL)=20 ' [123145375444992] stmt_with_params =3D '(null)' [123145375444992]about to begin SC_execute [123145375444992]libpq_bind_and_exec: bind stmt=3D0x10101ca00 [123145375444992]libpq_bind_and_exec: execute stmt=3D0x10101ca00 [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]SC_scanQueryAndCountParams: entering... [123145375444992]process_statements:parsed for the first command length=3D-= 1(-1) num_p=3D0 [123145375444992]ParseAndDescribeWithLibpq: plan_name=3D_PLAN0x10101ca00 qu= ery=3DINSERT INTO Core_Message(channel_id, date, member_id, reply_id)=20 VALUES(25, '2017-02-05 10:20:38', 4, NULL)=20 [123145375444992]in QR_Constructor [123145375444992]exit QR_Constructor [123145375444992]ParseWithLibpq: plan_name=3D_PLAN0x10101ca00 query=3DINSER= T INTO Core_Message(channel_id, date, member_id, reply_id)=20 VALUES(25, '2017-02-05 10:20:38', 4, NULL)=20 [123145375444992]error message len=3D20 [123145375444992]CC_on_abort in [123145375444992]SC_set_Result(101ca00, d0f920)[123145375444992]QResult: en= ter DESTRUCTOR [123145375444992]STATEMENT ERROR: func=3Ddesc_params_and_sync, desc=3D'', e= rrnum=3D1, errmsg=3D'Error while preparing parameters' [123145375444992]CONN ERROR: func=3Ddesc_params_and_sync, desc=3D'', errnum= =3D113, errmsg=3D'(NULL)' [123145375444992]CC_on_abort in [123145375444992]retval=3D-1 [123145375444992][[SQLGetDiagRec]] [123145375444992]PGAPI_GetDiagRec entering type=3D3 rec=3D1 [123145375444992]ER_ReturnError: status =3D 1, msg =3D #no error informatio= n; Error while preparing parameters# [123145375444992] szSqlState =3D 'HY000',len=3D54, szError=3D'no error= information; Error while preparing parameters' [123145375444992]PGAPI_GetDiagRec exiting 0 [123145375444992][[SQLGetDiagRec]] [123145375444992]PGAPI_GetDiagRec entering type=3D3 rec=3D2 [123145375444992]ER_ReturnError: status =3D 1, msg =3D #no error informatio= n; Error while preparing parameters# [123145375444992]PGAPI_GetDiagRec exiting 100 [123145375444992][[SQLFreeHandle]][123145375444992]PGAPI_FreeStmt: entering= ...hstmt=3D0x10101ca00, fOption=3D1 [123145375444992]QResult: enter DESTRUCTOR [123145375444992]QResult: in QR_close_result [123145375444992]QResult: free memory in, fcount=3D0 [123145375444992]QResult: free memory out [123145375444992]QResult: exit close_result [123145375444992]QResult: exit DESTRUCTOR [123145375444992]SC_init_Result(101ca00)[123145375444992]SC_Destructor: sel= f=3D0x10101ca00, self->result=3D0x0, self->hdbc=3D0x1030a3200 [123145375444992]APD_free_params: ENTER, self=3D0x10101cbd0 [123145375444992]IPD_free_params: ENTER, self=3D0x10101cc40 [123145375444992]PDATA_free_params: ENTER, self=3D0x10101cd38 [123145375444992]SC_Destructor: EXIT [123145375444992][[SQLGetDiagRec]] [123145375444992]PGAPI_GetDiagRec entering type=3D2 rec=3D1 [123145375444992]**** PGAPI_ConnectError: hdbc=3D0x1030a3200 <512> [123145375444992]enter CC_get_error [123145375444992]exit CC_get_error [123145375444992]CC_Get_error returned nothing. [123145375444992]PGAPI_GetDiagRec exiting 100 =E2=80=94 Daniil A Megrabyan =E2=80=94 --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc