Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API can be used to escape user input for SQL statements.

...

Parameter
  • Data stringString

...

Return Value
  • Returns escaped Escaped string.
Example
Code Block
languagejavascript
  var _stm = pjs.executeDirect("SELECT UPPER ( '" + pjs.escapeString(CharField) + "' ) FROM SYSIBM.SYSDUMMY1");
  pjs.fetch(_stm, CharField);
  pjs.close(_stm);