MCPcopy
hub / github.com/geldata/gel / test_sql_query_static_eval_09

Method test_sql_query_static_eval_09

tests/test_sql_query.py:1925–1934  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1923 self.assertEqual(res1, res2)
1924
1925 async def test_sql_query_static_eval_09(self):
1926 # we do no error checking on globals in SQL, but make sure
1927 # system ones aren't overridden
1928 await self.squery_values('''
1929 SET LOCAL "global sys::current_role" TO hello;
1930 ''')
1931 await self.assert_sql_query_result(
1932 'select current_user as cur;',
1933 [{'cur': 'admin'}],
1934 )
1935
1936 async def test_sql_native_query_static_eval_01(self):
1937 await self.assert_sql_query_result(

Callers

nothing calls this directly

Calls 2

squery_valuesMethod · 0.80

Tested by

no test coverage detected