×

Effectively and efficiently supporting XML sequence type and XQuery sequence natively in a SQL system

  • US 8,463,801 B2
  • Filed: 04/04/2005
  • Issued: 06/11/2013
  • Est. Priority Date: 04/04/2005
  • Status: Active Grant
First Claim
Patent Images

1. A method of simplifying an abstract syntax tree that represents a query, comprising:

  • determining whether the abstract syntax tree includes a representation of a first Structured Query Language (SQL) function that either (a) has an input parameter that is of Extensible Markup Language (XML) sequence type or (b) has an output parameter that is of XML sequence type; and

    in response to a determination that the abstract syntax tree includes the representation, determining one or more rules that apply to the first SQL function; and

    prior to evaluating the abstract syntax tree to execute the query, modifying the abstract syntax tree by applying the one or more rules to the first SQL function in the abstract syntax tree;

    wherein determining the one or more rules that apply to the first SQL function comprises;

    determining whether an input parameter of the first SQL function is a null value;

    determining whether the first SQL function is a member of a specified set of SQL functions; and

    in response to a determination that (a) an input parameter of the first SQL function is a null value and (b) the first SQL function is a member of the specified set of SQL functions, including, within the one or more rules, a rule which, when applied, replaces the first SQL function with a null value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×