From 45f64485139811d7d0d8b92cddcb7809957f73d6 Mon Sep 17 00:00:00 2001 From: Yavor Nikolov Date: Wed, 22 Oct 2014 21:51:08 +0300 Subject: [PATCH] rm all_procedures.object_type calls if < 11g Fix a regression for Oracle < 11g caused by reference to all_procedures.object_type which only exist for 11g+ versions --- lib/plsql/procedure.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/plsql/procedure.rb b/lib/plsql/procedure.rb index f02fa364..f5984e14 100644 --- a/lib/plsql/procedure.rb +++ b/lib/plsql/procedure.rb @@ -10,7 +10,6 @@ def find(schema, procedure, package = nil, override_schema_name = nil) AND p.object_name = :object_name AND o.owner = p.owner AND o.object_name = p.object_name - AND o.object_type = p.object_type AND o.object_type in ('PROCEDURE', 'FUNCTION')", schema.schema_name, procedure.to_s.upcase)) new(schema, procedure, nil, nil, row[0]) @@ -25,7 +24,6 @@ def find(schema, procedure, package = nil, override_schema_name = nil) AND o.object_type IN ('PROCEDURE','FUNCTION') AND o.owner = p.owner AND o.object_name = p.object_name - AND o.object_type = p.object_type ORDER BY DECODE(s.owner, 'PUBLIC', 1, 0)", schema.schema_name, procedure.to_s.upcase)) new(schema, row[1], nil, row[0], row[2]) @@ -41,7 +39,6 @@ def find(schema, procedure, package = nil, override_schema_name = nil) AND p.procedure_name = :procedure_name AND o.owner = p.owner AND o.object_name = p.object_name - AND o.object_type = p.object_type AND o.object_type = 'PACKAGE'", override_schema_name || schema.schema_name, package, procedure.to_s.upcase)) new(schema, procedure, package, override_schema_name, row[0])