Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

Method Description

PgsqlConnection.binaryEscape()

Convert (potentially) unsafe binary data to a safe SQL string (BYTEA types)

See Also

PgsqlConnection.binaryUnEscape

Syntax

string = PgsqlConnection.binaryEscape()

Parameters

The 'PgsqlConnection.binaryEscape' method takes no parameters

Results

The 'PgsqlConnection.binaryEscape' method returns string:

Type/Value Range/Length Description
string   A string representation of the object passed to the method, suitably escaped for sage inclusion in a SQL statement.

Remarks

This method allows a Presentation Page to take any arbitrary binary object to be stored in the database and convert it to a safe text string that can be used to build up a SQL statement.

This method allows an application to store things like JPEG of GIF images within a database object. Generally the schema colum type for storing the binary data is 'BYTEA'.

Generally the parameter you will be passing to this method will be a Binary object, but you can pass any parameter type. All types except Binary objects are first converted to a string before being escaped.

This is a class method - don't call aConnection.binaryEscape(), instead call PgsqlConnection.binaryEscape().
Whitebeam release 1.3.36
(loadtime : 9ms)