IBM Support

SI69141 - OSP-DB-OTHER-MSGSQL0301 SQLGETDATA(,,SQL_C_WCHAR,...)VARCHAR

PTF Cover Letter


PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

OSP-DB-OTHER-MSGSQL0301 SQLGETDATA(,,SQL_C_WCHAR,...)VARCHAR


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
NONE



NOTICE:
-------
Application of this PTF may disable or render ineffective programs that
use system memory addresses not generated by the IBM translator,
including programs that circumvent control technology designed to limit
interactive capacity to purchased levels.  This PTF may be a prerequisite
for future PTFs.  By applying this PTF you authorize and agree to the
foregoing.

This PTF is subject to the terms of the license agreement which
accompanied, or was contained in, the Program for which you are obtaining
the PTF.  You are not authorized to install or use the PTF except as part
of a Program for which you have a valid Proof of Entitlement.

SUBJECT TO ANY WARRANTIES WHICH CAN NOT BE EXCLUDED OR EXCEPT AS EXPLICITLY
AGREED TO IN THE APPLICABLE LICENSE AGREEMENT OR AN APPLICABLE SUPPORT
AGREEMENT, IBM MAKES NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON INFRINGEMENT,
REGARDING THE PTF.

The applicable license agreement may have been provided to you in printed
form and/or may be viewed using the Work with Software Agreements (WRKSFWAGR)
CL command.





APAR Error Description / Circumvention

-----------------------------------------------
SQLGetData(,,SQL_C_WCHAR,...) call works fine against a CLOB
column.
It does not work against a VARCHAR column, for example, a column
defined as varchar(3200).

This causes error:
SQLSTATE = 07006
SQL0301 - Input variable *N or argument 3 not valid.

From CLI trace :
EXIT: SQLError with return code 0 (SQL_SUCCESS)
SQLHENV 1
SQLHDBC 2
SQLHSTMT 3
SQLCHAR* 8000000000000000C39ED50922001610
"07006"
SQLINTEGER* 8000000000000000C39ED50922001500 (-301)
SQLCHAR* 8000000000000000C39ED50922001510
"Input variable *N or argument 3 not valid."
SQLSMALLINT 256
SQLSMALLINT* 8000000000000000C39ED50922001504 (43)

CORRECTION FOR APAR SE70650 :
-----------------------------
A SQLGetData call to get data from a VARCHAR column into a
SQL_C_WCHAR type fails with MSGSQL0301. The support for this
conversion has been added.

CIRCUMVENTION FOR APAR SE70650 :
--------------------------------
None.


Activation Instructions


None.




Special Instructions


None.


Default Instructions

THIS PTF CAN BE APPLIED IMMEDIATE OR DELAYED.



Supersedes

PTF/FIX NO(S).  APAR TITLE LINE
--------------  ------------------------------------------------------------
   SI68233      OSP-MSGSQL0504 CLI USING DRDA BETWEEN 2 ISERIES, CURSOR NAME
   SI68002      OSP-DB-OTHER MCH0601 SQLCLOSECURSOR
   SI67697      OSP-DB-OTHER-INCORROUT CLI INPUT/OUTPUT PARAMETERS
   SI67611      OSP-DB-OTHER-T/QSQRUN2MOD/QSQFETCHPROC/TRANSLATE_SIMPLE- MSG
   SI67503      OSP-DB CONTENT MANAGER ON DEMAND MAY STOP RESPONDING AFTER S
   SI65130      OSP-DB-OTHER-INCORROUT SQLCLI RETRIEVE CLOB DATA IN UTF-16
   SI64502      OSP-DB-OTHER-F/QSQCLI-T/QSQCLI-RC14-MSGSQ99999 FETCHING ROWS
   SI63414      OSP-DB-OTHER-F/QSQCLI-MSGMCH0601 SQLEX
   SI62828      OSP-DB-MSGMCH3601-T/QSQSFIRT Backup to cloud
   SI62782      OSP-DB-CLI-MSGSQ99999 Spurious message from SQLFreeEnv cause
   SI62098      OSP-DB-OTHER-F/QSQCLI-MSGMCH0601 SQLSETCONNECTATTR setting S
   SI62001      OSP-DB BRMS command fails with MSGSQ99999 RC 10
   SI61636      OSP-DB Add CLI Connection Attributes
   SI60355      OSP-DB-OTHER-F/QSQCLI-T/QP2USER2-RC21-MSGSQ99999 PHP/ZEND-CL
   SI59567      OSP-DB-OTHER-F/QSQCLI-MSGSQ99999 SQLCLI API SQLGETLENGTH RET
   SI59477      OSP-HASWTRSC-F/QTNROLLB-T/QSQCLI-MSGCPF83D0 MCH3402 - CPF426
   SI59477      OSP-DB-OTHER-F/QSQCLI-T/QSQCLI-MSGMCH3601 INVALID CLI HANDLE
   SI59476      OSP-DB-OTHER-INCORROUT RESULTS ARE NOT CORRECT FOR PROCEDURE
   SI58589      OSP-DB-OTHER-F/QSQCLI-T/QSQCLI-MSGSQ99999 QSQCLI SQ99999 WHE

Summary Information

System..............................  i
Models..............................  
Release.............................  V7R3M0
Licensed Program....................  5770SS1
APAR Fixed..........................  View details for APAR SE70650
Superseded by:......................  View fix details for PTF SI79721
Recompile...........................  N
Library.............................  QSYS
MRI Feature ........................  NONE
Cum Level...........................  C9311730


IBM i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"5770SS1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
09 November 2022