subsite-callback-procs-postgresql.xql

  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
merge from oacs-5-10

    • -14
    • +22
    ./subsite-callback-procs-postgresql.xql
  1. … 8099 more files in changeset.
fix cut&paste issue

    • -1
    • +1
    ./subsite-callback-procs-postgresql.xql
Fixes for Oracle 19c recursive query

Oracle has a slightly differnt syntax for CTEs require arguments, keyword "recursive" is not allowed.

This fixes the following error during initial installation:

nsoracle.c:1367:OracleSelect: error in `OCIStmtExecute ()': ORA-00905: missing keyword

SQL:

with recursive !>>>!object_hierarchy as (

select object_type, supertype

from acs_object_types

where object_type = coalesce(:object_type, (select object_type

from acs_objects

where object_id = :object_id))

union all

select t.object_type, t.supertype

from acs_object_types t,

object_hierarchy s

where t.object_type = s.supertype

)

select distinct callback, callback_type as type

from subsite_callbacks

where event_type = :event_type

and object_type in (select object_type from object_hierarchy)

    • -0
    • +30
    ./subsite-callback-procs-postgresql.xql
  1. … 2 more files in changeset.
Rename subsite_callback to comply with OpenACS naming convention, reduce divergency between oracle and postgres codebase

    • -22
    • +0
    ./subsite-callback-procs-postgresql.xql
  1. … 2 more files in changeset.

Switched tree-based queries to a tree-using form, which will greatly enhance

scalability...

    • -1
    • +1
    ./subsite-callback-procs-postgresql.xql
  1. … 26 more files in changeset.
Port queries

    • -5
    • +5
    ./subsite-callback-procs-postgresql.xql
  1. … 2 more files in changeset.
Port queries/query extractor output

    • -0
    • +22
    ./subsite-callback-procs-postgresql.xql
  1. … 180 more files in changeset.