lib/sql.js
function (ds) {
            !Dataset && (Dataset = require("./dataset"));
            ds = ds || new Dataset();
            return ds.castSql(this.expr, this.type);
        }
function (ds) {
            !Dataset && (Dataset = require("./dataset"));
            ds = ds || new Dataset();
            return ds.castSql(this.expr, this.type);
        }
function ( ds ) { ! Dataset && ( Dataset = require ( "./dataset" ) ) ; ds = ds || new Dataset ( ) ; return ds . castSql ( this . expr , this . type ) ; }
Converts the cast expression to a string

@param {patio.Dataset} [ds] dataset used to created the SQL fragment, if
the dataset is ommited then the default {@link patio.Dataset} implementation is used.

@return String the SQL cast expression fragment.
Converts the cast expression to a string