DB2 - Problem description
| Problem IC79778 | Status: Closed |
ISSUES WITH REFERENCING THE VARIABLES IN MIXED CASES | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
When we execute the below statements we get the following error
$ db2 create variable \"Ihubv97\".var9 bigint default 10125
DB20000I The SQL command completed successfully.
$ db2 values \"Ihubv97\".var9
SQL0727N An error occurred during implicit system action type
"10".
Information returned for the error includes SQLCODE "-206",
SQLSTATE
"42703"
and message tokens "IHUBV97.VAR9". SQLSTATE=56098
$ db2 grant all on variable \"Ihubv97\".var9 to public
DB20000I The SQL command completed successfully.
$ db2 values \"Ihubv97\".var9
SQL0727N An error occurred during implicit system action type
"10".
Information returned for the error includes SQLCODE "-206",
SQLSTATE
"42703"
and message tokens "IHUBV97.VAR9". SQLSTATE=56098
If I then create a second variable all in upper case, the error
is
gone, but the result is incorrect.
$ db2 create variable Ihubv97.var9 integer default 10
DB20000I The SQL command completed successfully.
$ db2 grant all on variable Ihubv97.var9 to public
DB20000I The SQL command completed successfully.
$ db2 values \"Ihubv97\".var9
1
--------------------
-
1 record(s) selected.
$ db2 values ihubv97.var9
1
-----------
10
1 record(s) selected. | |
| Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * all * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 Version 9.7 fix pack 6 * **************************************************************** | |
| Local Fix: | |
| available fix packs: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
| Solution | |
| Workaround | |
not known / see Local fix | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 14.11.2011 17.07.2012 17.07.2012 |
| Problem solved at the following versions (IBM BugInfos) | |
9.7.FP6 | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.6 |
|