DatabaseProcApplicationCreatedLinks
sybsystemprocssp_odbc_getcolumnprivileges  14 déc. 14Defects Propagation Dependencies

1     
2     
3     /* Sccsid = '%Z% generic/sproc/src/%M% %I% %G%' */
4     
5     CREATE OR REPLACE PROCEDURE sp_odbc_getcolumnprivileges(@table_name VARCHAR(771),
6         @table_owner VARCHAR(32) = NULL,
7         @table_qualifier VARCHAR(32) = NULL,
8         @column_name VARCHAR(771) = NULL)
9     
10    AS
11        EXECUTE sp_drv_getcolumnprivileges @table_name, @table_owner, @table_qualifier, @column_name
12    


exec sp_procxmode 'sp_odbc_getcolumnprivileges', 'AnyMode'
go

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

DEPENDENCIES
PROCS AND TABLES USED
calls proc sybsystemprocs..sp_drv_getcolumnprivileges  
   reads table sybsystemprocs..sysobjects  
   reads table sybsystemprocs..sysprotects  
   reads table master..sysloginroles (1)  
   reads table master..syssrvroles (1)  
   reads table sybsystemprocs..syscolumns  
   reads table master..sysconfigures (1)  
   writes table sybsystemprocs..sp_drv_getcolumnprivileges_rset_001 
   reads table sybsystemprocs..sysusers