public static function GetQuotedSql($val)
	{
		if (DataAdapter::$ADAPTER_INSTANCE) DataAdapter::$ADAPTER_INSTANCE->LoadDriver();
		
		// this is an unfortunate leftover from poor design of making this function static
		// we cannon use the driver's escape method without a static reference
		if (!DataAdapter::$DRIVER_INSTANCE) throw new Exception("DataAdapter must be instantiated before Escape can be called");
	
		// $driver->RequireConnection(true);
		return DataAdapter::$DRIVER_INSTANCE->GetQuotedSql($val);
	}
public static function GetQuotedSql($val)
	{
		if (DataAdapter::$ADAPTER_INSTANCE) DataAdapter::$ADAPTER_INSTANCE->LoadDriver();
		
		// this is an unfortunate leftover from poor design of making this function static
		// we cannon use the driver's escape method without a static reference
		if (!DataAdapter::$DRIVER_INSTANCE) throw new Exception("DataAdapter must be instantiated before Escape can be called");
	
		// $driver->RequireConnection(true);
		return DataAdapter::$DRIVER_INSTANCE->GetQuotedSql($val);
	}
public static function GetQuotedSql ( $ val ) { if ( DataAdapter :: $ ADAPTER_INSTANCE ) DataAdapter :: $ ADAPTER_INSTANCE -> LoadDriver ( ) ; // this is an unfortunate leftover from poor design of making this function static
 // we cannon use the driver's escape method without a static reference
 if ( ! DataAdapter :: $ DRIVER_INSTANCE ) throw new Exception ( "DataAdapter must be instantiated before Escape can be called" ) ; // $driver->RequireConnection(true);
 return DataAdapter :: $ DRIVER_INSTANCE -> GetQuotedSql ( $ val ) ; }
Quote and escape value to prepare it for use in SQL

@access public
@param string $val
@return string
Quote and escape value to prepare it for use in SQL