![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We've just migrated, in our development environment, an 8.2 instance to 9.7. The developers started to test their apps against the 9.7 database, and a proc that worked in 8.2 isn't working in 9.7. Here's the proc. CREATE PROCEDURE DB2ADMIN.SP_TIER_POINT_SNAPSHOT() SPECIFIC DB2ADMIN.SQL081217070527800 MODIFIES SQL DATA NOT DETERMINISTIC NULL CALL LANGUAGE SQL EXTERNAL ACTION INHERIT SPECIAL REGISTERS BEGIN if exists (select * from syscat.tables where tabname = 'TEMP_PATRON_ACCOUNT') then drop table db2admin.temp_patron_account; end if; create table db2admin.temp_patron_account( acct_id integer not null, YTD_TIER_LEVEL_POINTS integer not null, YTD_NON_BONUSABLE_POINTS integer not null); insert into db2admin.temp_patron_account select acct_id, YTD_TIER_LEVEL_POINTS, YTD_NON_BONUSABLE_POINTS from db2admin.patron_account a, db2admin.patron b where a.ptrn_id=b.ptrn_id and b.PTRN_STAT_CODE <> 'ARCHIVED'; end ; When run it returns a SQL0910N error. Does the proc violate some rule that was introduced between 8.2 and 9.7? What would be necessary to fix it? Thanks. |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |