×

Server side bucketization of parameterized queries

  • US 7,865,515 B2
  • Filed: 08/28/2006
  • Issued: 01/04/2011
  • Est. Priority Date: 08/28/2006
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method, comprising:

  • receiving, from a requesting object, at least one parameterized query expression of a structured query language (SQL);

    generating at least one new parameterized query expression based on the at least one received parameterized query expression, wherein the generating includes replacing a type of at least one parameter of the at least one parameterized query expression with a new normalized parameter type, wherein the replacing is executed, according to at least one pre-defined conversion algorithm, the at least one parameter being associated with first metadata to be returned by a query;

    determining for the at least one parameter, whether said replacing the type of the at least one parameter will;

    change semantic information of the at least one parameterized query expression; and

    cause second metadata to be returned by the query, wherein the first metadata to be returned by the query is different from the second metadata to be returned by the query;

    performing said replacing the type of the at least one parameter based, at least, on the determining for the at least one parameter that;

    said semantic information of the at least one parameterized query expression will remain unchanged; and

    the first metadata to be returned by the query is the same as the second metadata to be returned by the query; and

    identifying whether literals of a non-parameterized query statement are parameterizable to a parameterized query expression by;

    determining whether replacing the literals with a parameter will not change data or metadata transmitted back to a client; and

    identifying as literals that are parameterizable to the parameterized query expression, ones of the literals for which the replacing will not change data or metadata transmitted back to the client;

    wherein the type of the at least one parameter has a length in a range from 1 to n and the new normalized parameter type has a length equal to n, wherein said n is at least one of an integer or a real number.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×