db_case_sensitive From Online Manual

Revision as of 20:01, 26 July 2011 by Emanuele (talk | contribs) (Created page with "{{smcfunc |function=db_case_sensitive |usage=$smcFunc['db_case_sensitive'] |description=Tells SMF whether the database is case sensitive (PostgreSQL and SQlite) or not (MySQL). '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage:

$smcFunc['db_case_sensitive']


Description: Tells SMF whether the database is case sensitive (PostgreSQL and SQlite) or not (MySQL). Shall not be called as a function, but used a boolean.

Return: True if the database is case sensitive false otherwise.

Example:

// Get the case of the columns right - but only if we need to as things like MySQL will go slow needlessly otherwise.
$member_name = $smcFunc['db_case_sensitive'] ? 'LOWER(member_name)' : 'member_name'



Advertisement: