(self)
| 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( |
nothing calls this directly
no test coverage detected