diff --git a/src/ls_odbc.c b/src/ls_odbc.c index 8e38d1a..d61504b 100644 --- a/src/ls_odbc.c +++ b/src/ls_odbc.c @@ -292,15 +292,6 @@ static int cur_shut(lua_State *L, cur_data *cur) */ static const char *sqltypetolua (const SQLSMALLINT type) { switch (type) { - case SQL_UNKNOWN_TYPE: case SQL_CHAR: case SQL_VARCHAR: - case SQL_TYPE_DATE: case SQL_TYPE_TIME: case SQL_TYPE_TIMESTAMP: - case SQL_DATE: case SQL_INTERVAL: case SQL_TIMESTAMP: - case SQL_LONGVARCHAR: - case SQL_WCHAR: case SQL_WVARCHAR: case SQL_WLONGVARCHAR: -#if (ODBCVER >= 0x0350) - case SQL_GUID: -#endif - return "string"; case SQL_BIGINT: case SQL_TINYINT: case SQL_INTEGER: case SQL_SMALLINT: #if LUA_VERSION_NUM>=503 @@ -314,8 +305,7 @@ static const char *sqltypetolua (const SQLSMALLINT type) { case SQL_BIT: return "boolean"; default: - assert(0); - return NULL; + return "string"; } }