/*
 * Test the sys.write_sql_log( ) function
 */
BEGIN;
	SELECT plan( 1 );
	
	SELECT diag_test_name( 'sys.write_sql_log( ) - Privileges' );
	SELECT lives_ok(
		$$ SELECT sys.write_sql_log( 'test' , 'WARNING'::log_level , 'test' ) $$
	);

	SELECT * FROM finish( );
ROLLBACK;