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 Page History

« Previous Version 5 Next »

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

Parameters
  • Data string
Returns
  • Returns escaped string.
Example
  var _stm = pjs.executeDirect("SELECT UPPER ( '" + pjs.escapeString(CharField) + "' ) FROM SYSIBM.SYSDUMMY1");
  pjs.fetch(_stm, CharField);
  pjs.close(_stm);
  • No labels