Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC86333 Status: Geschlossen

SQL0313N ERROR RETURNED WHEN HOST VARIABLES ARE USED IN DELETE STATEMENT IN
A CLI APPLICATION.

Produkt:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problembeschreibung:
Delete statement without 'from' clause against a database 
created with Oracle Compatibility mode fails with SQl0313N when 
host variables are used in a CLI application. 
 
Example: 
 
Delete t2 where col1 = :1 and col2 = :2 
 
[IBM][CLI Driver][DB2/6000] SQL0313N  The number of var 
iables in the EXECUTE statement, the number of variables in the 
OPEN statement, 
or the number of arguments in an OPEN statement for a 
parameterized cursor is no 
t equal to the number of values required.  SQLSTATE=07004
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 on LUW V10 users.                                        * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 V10 Fixpack 2.                                * 
****************************************************************
Local-Fix:
Use parameter markers instead of host variables. 
Delete t2 where col1 = ? and col2 = ?
verfügbare FixPacks:
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Lösung
Fixed in DB2 on LUW V10 Fixpack 2
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
04.09.2012
31.01.2013
31.01.2013
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.2 FixList
10.5.0.2 FixList