MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / full_text_search_missing

Function full_text_search_missing

test/dialect/mssql/test_query.py:412–423  ·  view source on GitHub ↗

Test if full text search is not implemented and return False if it is and True otherwise.

()

Source from the content-addressed store, hash-verified

410
411
412def full_text_search_missing():
413 """Test if full text search is not implemented and return False if
414 it is and True otherwise."""
415
416 if not testing.against("mssql"):
417 return True
418
419 with testing.db.connect() as conn:
420 result = conn.exec_driver_sql(
421 "SELECT cast(SERVERPROPERTY('IsFullTextInstalled') as integer)"
422 )
423 return result.scalar() == 0
424
425
426class MatchTest(AssertsCompiledSQL, fixtures.TablesTest):

Callers

nothing calls this directly

Calls 4

againstMethod · 0.45
connectMethod · 0.45
exec_driver_sqlMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected