=== modified file 'ChangeLog' --- ChangeLog 2013-06-26 14:46:02 +0000 +++ ChangeLog 2013-07-09 11:35:31 +0000 @@ -15,6 +15,7 @@ (Bug# 16176981/67793) * Conversion of Time field data to Timestamp type may produce incorrect result (Bug# 17016839/69545) + * MS Access crashed when sorting a column (Bug# 17071780/69550) ---- === modified file 'driver/results.c' --- driver/results.c 2013-06-26 14:46:02 +0000 +++ driver/results.c 2013-07-09 11:29:17 +0000 @@ -1195,8 +1195,12 @@ /* catalog functions with "fake" results won't have lengths */ length= irrec->row.datalen; - if (!length && stmt->current_values[ColumnNumber]) + if (!length && + !is_null(stmt, ColumnNumber, stmt->current_values[ColumnNumber])) + { + /* Measure the length only when we are sure the column is not NULL */ length= strlen(stmt->current_values[ColumnNumber]); + } if (!stmt->dbc->ds->dont_use_set_locale) setlocale(LC_NUMERIC, "C");