Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 15 Current »

This API sets an attribute of a statement handle.

The API can also be called in the form of a method attached to a statement object as follows: stmt.setAttr().

Parameters
  1. The handle which is created from pjs.prepare() or pjs.allocStmt(). This parameter is omitted if the API is called as a statement method.
  2. Attribute to change
  3. New attribute value
Attributes and their valid values
  • profound.SQL_ATTR_CURSOR_SENSITIVITY
    • profound.SQL_INSENSITIVE
    • profound.SQL_SENSITIVE


Exception Handling

Examples

Called directly
var c1 = pjs.allocStmt(); 
pjs.setStmtAttr(c1, SQL_ATTR_CURSOR_SCROLLABLE, SQL_TRUE);
// ...
Called as a method
var c1 = pjs.prepare("SELECT * FROM productsp WHERE prid = ?");
c1.setAttr(SQL_ATTR_CURSOR_SCROLLABLE, SQL_TRUE);
// ...


Requirements

This API requires the Profound.js Connector module.

  • No labels