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);
	}