sql_or_array() let caller specify if column is expected to contain numeric values or not forces qouting for sting values, needed for fast select on phone numbers as strings. Linus found out that un-escaped "numeric" strings, such as a phone number selection is much slower than if they are escaped
sql_or_array() let caller specify if column is expected to contain numeric values or not
forces qouting for sting values, needed for fast select on phone numbers as strings.
Linus found out that un-escaped "numeric" strings, such as a phone number selection is much slower
than if they are escaped

SELECT * FROM tblCalls WHERE ANI=46737308763    SLOW
SELECT * FROM tblCalls WHERE ANI="46737308763"  FAAST

(also requires index)



martinlindhe/core_dev,martinlindhe/core_dev