Skip to content

Commit

Permalink
Fix for ODBC-156. MS Access error - "Reserved error (-7748); there is…
Browse files Browse the repository at this point in the history
… no message for this error" with UTF8 databases with collation
  • Loading branch information
alexpotapchenko committed Dec 6, 2012
1 parent 4b90e5d commit 560362f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IscDbc/IscIndexInfoResultSet.cpp
Expand Up @@ -77,7 +77,7 @@ void IscIndexInfoResultSet::getIndexInfo(const char * catalog,
"\tcast(0 as smallint) as index_type,\n" // 7 SQL_TABLE_STAT
"\tcast(NULL as smallint) as ordinal_position,\n" // 8
"\tcast(NULL as varchar(31)) as column_name,\n" // 9
"\tcast(NULL as char) as asc_or_desc,\n" // 10
"\tcast(NULL as char CHARACTER SET NONE) as asc_or_desc,\n" // 10
"\tcast(NULL as integer) as cardinality,\n" // 11
"\tcast(NULL as integer) as index_pages,\n" // 12
"\tcast(NULL as varchar(31)) as filter_condition,\n" // 13
Expand All @@ -97,7 +97,7 @@ void IscIndexInfoResultSet::getIndexInfo(const char * catalog,
"\tcast(seg.rdb$field_position as smallint) as ordinal_position,\n" // 8
"\tcast(coalesce(seg.rdb$field_name,\n"
"substring(idx.rdb$expression_source from 1 for 31)) as varchar(31)) as column_name,\n" // 9
"\tcast(NULL as char) as asc_or_desc,\n" // 10
"\tcast(NULL as char CHARACTER SET NONE) as asc_or_desc,\n" // 10
"\tcast((case when idx.rdb$statistics = 0 then 0 else\n"
"1/idx.rdb$statistics end) as integer) as cardinality,\n" // 11
"\tcast(NULL as integer) as index_pages,\n" // 12
Expand Down

0 comments on commit 560362f

Please sign in to comment.