]> git.sur5r.net Git - bacula/bacula/commitdiff
Convert SQL_TYPE_POSTGRE to SQL_TYPE_POSTGRESQL
authorKern Sibbald <kern@sibbald.com>
Sat, 23 Feb 2008 09:01:32 +0000 (09:01 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 23 Feb 2008 09:01:32 +0000 (09:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6469 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/cats.h
bacula/src/cats/sql.c

index c16879eec3475b2ba3198af25ded3aa83eac9500..7d7e94e7c08fa196054a35560cd3f75649fc4272 100644 (file)
@@ -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
 };
 
 
index 201485d27f71eef4747941b6142cfc30e50b33ca..56b9ccaf0421b7395bf77d3ef953f4d22e671403 100644 (file)
@@ -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