Skip to content

Commit

Permalink
Merge pull request #69 from rsim/fix-missing-object-type-with-10.2
Browse files Browse the repository at this point in the history
Don't refer to all_procedures.object_type for Oracle < 11g
  • Loading branch information
javornikolov committed Oct 22, 2014
2 parents 1c19d69 + 45f6448 commit 908396a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/plsql/procedure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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])
Expand All @@ -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])
Expand Down

0 comments on commit 908396a

Please sign in to comment.