DatabaseProcApplicationCreatedLinks
sybsystemprocssp_jdbc_exportkey  14 déc. 14Defects Propagation Dependencies

1     
2     CREATE OR REPLACE PROCEDURE sp_jdbc_exportkey(
3         @table_qualifier varchar(32) = null,
4         @table_owner varchar(32) = null,
5         @table_name varchar(255))
6     as
7         /* this will make sure that all rows are sent even if
8         ** the client "set rowcount" is differect
9         */
10    
11        set rowcount 0
12    
13        exec sp_jdbc_fkeys
14            @table_name, @table_owner, @table_qualifier, NULL, NULL, NULL
15    


exec sp_procxmode 'sp_jdbc_exportkey', 'AnyMode'
go

Grant Execute on sp_jdbc_exportkey to public
go
DEFECTS
 MGTP 3 Grant to public sybsystemprocs..sp_jdbc_exportkey  
 MNER 3 No Error Check should check return value of exec 13
 MUCO 3 Useless Code Useless Brackets in create proc 2
 MTR1 2 Metrics: Comments Ratio Comments: 20% 2
 MTR2 2 Metrics: Cyclomatic Complexity Cyclo: 2 = 1dec - 1exi + 2 2
 MTR3 2 Metrics: Query Complexity Complexity: 3 2

DATA PROPAGATION detailed
ColumnWritten To
@table_qualifiersp_jdbc_fkeys_rset_001.PKTABLE_CAT sp_jdbc_fkeys_rset_002.PKTABLE_CAT sp_jdbc_fkeys_rset_003.PKTABLE_CAT

DEPENDENCIES
PROCS AND TABLES USED
calls proc sybsystemprocs..sp_jdbc_fkeys  
   writes table sybsystemprocs..sp_jdbc_fkeys_rset_002 
   read_writes table tempdb..#jfkey_res (1) 
   writes table sybsystemprocs..sp_jdbc_fkeys_rset_003 
   reads table sybsystemprocs..sysobjects  
   read_writes table tempdb..#jpkeys (1) 
   read_writes table tempdb..#jfkeys (1) 
   read_writes table tempdb..#jfid (1) 
   reads table sybsystemprocs..sysreferences  
   calls proc sybsystemprocs..sp_getmessage  
      reads table master..sysmessages (1)  
      reads table master..syslanguages (1)  
      reads table sybsystemprocs..sysusermessages  
      calls proc sybsystemprocs..sp_validlang  
         reads table master..syslanguages (1)  
   writes table sybsystemprocs..sp_jdbc_fkeys_rset_001 
   reads table sybsystemprocs..sysindexes  
   read_writes table tempdb..#jpid (1)