0
    with psycopg2.connect(conn_url) as conn:
        with conn.cursor(name=f"{uuid4()}") as cursor:
            cursor.itersize = batch_size
            cursor.execute(raw_sql, params) 

this is returning empty row in django test. But running correctly in shell_plus.

Also I have set @override_settings(DISABLE_SERVER_SIDE_CURSORS=False) . But still getting the same result

Abhinav Prakash
  • 124
  • 1
  • 1
  • 10
  • Does this answer your question? [Django test database looks empty while test is running](https://stackoverflow.com/questions/10367338/django-test-database-looks-empty-while-test-is-running) – Yevhen Kuzmovych Jun 12 '23 at 11:52

0 Answers0