code: def test_table_filter_extra_where_disabled_if_no_sql_allowed():
      with make_app_client(config={"allow_sql": {}}) as client:
          response = client.get(
              "/fixtures/facetable.json?_where=_neighborhood='Dogpatch'"
          )
          assert response.status_code == 403
          assert "_where= is not allowed" == response.json["error"]
  
file_path: datasette/tests/test_table_api.py
imports: from datasette.utils import detect_json1
  from datasette.utils.sqlite import sqlite_version
  from .fixtures import app_client, app_client_with_trace, app_client_returned_rows_matches_page_size, generate_compound_rows, generate_sortable_rows, make_app_client
  import json
  import pytest
  import urllib
label_desc: Use image node_id 2 for calling a global function with example usage: test_table_filter_extra_where_disabled_if_no_sql_allowed() without return types