From: Kern Sibbald Date: Sat, 23 Feb 2008 09:01:32 +0000 (+0000) Subject: Convert SQL_TYPE_POSTGRE to SQL_TYPE_POSTGRESQL X-Git-Tag: Release-3.0.0~1820 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fcb3b570da979395c9d89726bc8335b0b4d22148;p=bacula%2Fbacula Convert SQL_TYPE_POSTGRE to SQL_TYPE_POSTGRESQL git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6469 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/cats.h b/bacula/src/cats/cats.h index c16879eec3..7d7e94e7c0 100644 --- a/bacula/src/cats/cats.h +++ b/bacula/src/cats/cats.h @@ -70,9 +70,9 @@ #define __SQL_H_ 1 enum { - SQL_TYPE_MYSQL = 0, - SQL_TYPE_POSTGRE = 1, - SQL_TYPE_SQLITE = 2 + SQL_TYPE_MYSQL = 0, + SQL_TYPE_POSTGRESQL = 1, + SQL_TYPE_SQLITE = 2 }; diff --git a/bacula/src/cats/sql.c b/bacula/src/cats/sql.c index 201485d27f..56b9ccaf04 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -72,7 +72,7 @@ B_DB *db_init(JCR *jcr, const char *db_driver, const char *db_name, const char * if (strcasecmp(p, "mysql") == 0) { db_type = SQL_TYPE_MYSQL; } else if (strcasecmp(p, "postgresql") == 0) { - db_type = SQL_TYPE_POSTGRE; + db_type = SQL_TYPE_POSTGRESQL; } else if (strcasecmp(p, "sqlite") == 0) { db_type = SQL_TYPE_SQLITE; } else { @@ -81,7 +81,7 @@ B_DB *db_init(JCR *jcr, const char *db_driver, const char *db_name, const char * #elif HAVE_MYSQL db_type = SQL_TYPE_MYSQL; #elif HAVE_POSTGRESQL - db_type = SQL_TYPE_POSTGRE; + db_type = SQL_TYPE_POSTGRESQL; #elif HAVE_SQLITE db_type = SQL_TYPE_SQLITE; #elif HAVE_SQLITE3