Merge pull request #456 from kAworu/master

check the return value of sqlite3_column_text() against NULL in get_sql_string()