norman/friendly_id — pull request #330 by btrepp (2012-10-09 00:40:50+00:00)
Title: Fix LENGTH undefined in microsoft sqlserver

SQLServer does not support the LENGTH function, but has the same functionality implemented with LEN.
This change detects if the 'sqlserver' connection adapter is being used, and changes the
function accordingly.