Applies minor fix for DataToBuffer() for SQL_TEXT

Fix sourced from Alessandro Batisti at https://code.google.com/p/fenixsql/