aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-sqlite.h
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-04-27 21:11:00 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-05-08 17:50:55 +0800
commit936e759536705b22218afaceff4d81d348021402 (patch)
treeeaee79600e8148ebb912239f0ea58161b9110513 /lib/ephy-sqlite.h
parentbb10c338f3acb2dbdfe7405e7305f928df636f42 (diff)
downloadgsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar.gz
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar.bz2
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar.lz
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar.xz
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.tar.zst
gsoc2013-epiphany-936e759536705b22218afaceff4d81d348021402.zip
ephy-history-service: trim query strings to avoid reaching sqlite limit
Sqlite limits the length of a LIKE pattern to 50000 bytes, therefore we need to make sure that longer strings are not used as queries. https://bugzilla.gnome.org/show_bug.cgi?id=674848
Diffstat (limited to 'lib/ephy-sqlite.h')
-rw-r--r--lib/ephy-sqlite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-sqlite.h b/lib/ephy-sqlite.h
index dc151ec5f..e2ad297f5 100644
--- a/lib/ephy-sqlite.h
+++ b/lib/ephy-sqlite.h
@@ -29,6 +29,8 @@ typedef enum {
EPHY_SQLITE_COLUMN_TYPE_BLOB
} EphySQLiteColumnType;
+#define EPHY_SQLITE_LIMIT_LIKE_PATTERN_LENGTH 50000
+
G_END_DECLS
#endif /* EPHY_SQLITE_H */