[glom] Find: Make searching case-insensitive again.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Find: Make searching case-insensitive again.
- Date: Mon, 4 Jul 2011 13:02:24 +0000 (UTC)
commit 9c10c439c224b5cb0295d9596d1020760b91baee
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Jul 4 15:02:12 2011 +0200
Find: Make searching case-insensitive again.
* glom/libglom/connectionpool_backends/postgres.cc:
get_string_find_operator(): Use ILIKE, though this requires the lastest
libgdamm from git master.
Find has been case-sensitive since around glom 1.16, since we started
using SqlBuilder.
ChangeLog | 10 ++++++++++
glom/libglom/connectionpool_backends/postgres.cc | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5ff21b5..f726ade 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2011-07-04 Murray Cumming <murrayc murrayc com>
+ Find: Make searching case-insensitive again.
+
+ * glom/libglom/connectionpool_backends/postgres.cc:
+ get_string_find_operator(): Use ILIKE, though this requires the lastest
+ libgdamm from git master.
+ Find has been case-sensitive since around glom 1.16, since we started
+ using SqlBuilder.
+
+2011-07-04 Murray Cumming <murrayc murrayc com>
+
Backends: Slight reorganization.
* glom/libglom/connectionpool_backends/backend.h:
diff --git a/glom/libglom/connectionpool_backends/postgres.cc b/glom/libglom/connectionpool_backends/postgres.cc
index e7e0669..b790b1d 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -899,9 +899,9 @@ bool Postgres::supports_remote_access() const
Gnome::Gda::SqlOperatorType Postgres::get_string_find_operator() const
{
- // TODO: ILIKE is a PostgreSQL extension for locale-dependent case-insensitive matches.
+ // ILIKE is a PostgreSQL extension for locale-dependent case-insensitive matches.
//See http://developer.postgresql.org/pgdocs/postgres/functions-matching.html
- return Gnome::Gda::SQL_OPERATOR_TYPE_LIKE;
+ return Gnome::Gda::SQL_OPERATOR_TYPE_ILIKE;
}
const char* Postgres::get_public_schema_name() const
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]