summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1aa2b8)
raw | patch | inline | side by side (parent: a1aa2b8)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 4 Feb 2009 08:32:34 +0000 (09:32 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 4 Feb 2009 08:32:34 +0000 (09:32 +0100) |
This is for compatibility with old configuration of the postgresql plugin.
src/utils_db_query.c | patch | blob | history |
diff --git a/src/utils_db_query.c b/src/utils_db_query.c
index 1bd5b21664d85653b5c427a36c5be70fe9208b30..868b53bf5c92e68fb24c0aaf7ae42612dd22c645 100644 (file)
--- a/src/utils_db_query.c
+++ b/src/utils_db_query.c
status = udb_config_set_uint (&q->min_version, child);
else if (strcasecmp ("MaxVersion", child->key) == 0)
status = udb_config_set_uint (&q->max_version, child);
+ /* PostgreSQL compatibility code */
+ else if (strcasecmp ("MinPGVersion", child->key) == 0)
+ {
+ WARNING ("db query utils: Query `%s': The `MinPGVersion' option is "
+ "deprecated. Please use `MinVersion' instead.",
+ q->name);
+ status = udb_config_set_uint (&q->min_version, child);
+ }
+ else if (strcasecmp ("MaxPGVersion", child->key) == 0)
+ {
+ WARNING ("db query utils: Query `%s': The `MaxPGVersion' option is "
+ "deprecated. Please use `MaxVersion' instead.",
+ q->name);
+ status = udb_config_set_uint (&q->max_version, child);
+ }
else
{
WARNING ("db query utils: Query `%s': Option `%s' not allowed here.",