[libgda] Correction for bug #651069 - DataProxy improperly sorts utf8 national letters
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Correction for bug #651069 - DataProxy improperly sorts utf8 national letters
- Date: Fri, 27 May 2011 19:41:45 +0000 (UTC)
commit 100ce8068e77ae909dd4ae31f4979c54d1cbc549
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri May 27 21:40:28 2011 +0200
Correction for bug #651069 - DataProxy improperly sorts utf8 national letters
libgda/sqlite/virtual/gda-vprovider-data-model.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgda/sqlite/virtual/gda-vprovider-data-model.c b/libgda/sqlite/virtual/gda-vprovider-data-model.c
index de5ce7a..833ccdf 100644
--- a/libgda/sqlite/virtual/gda-vprovider-data-model.c
+++ b/libgda/sqlite/virtual/gda-vprovider-data-model.c
@@ -511,6 +511,8 @@ virtualCreate (sqlite3 *db, void *pAux, int argc, const char *const *argv, sqlit
g_string_append (sql, type);
if (! gda_column_get_allow_null (column))
g_string_append (sql, " NOT NULL");
+ if (gtype == G_TYPE_STRING)
+ g_string_append (sql, " COLLATE LOCALE");
}
/* add a hidden column which contains the row number of the data model */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]