]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_postgresql_database.in
Use correct SQL table encoding for Postgresql 10.x
[bacula/bacula] / bacula / src / cats / create_postgresql_database.in
index ac15d524e822a2658b3c8018b5c310ddd8e1d637..deff1017c5ef9ba381812005762cee54144ee48b 100644 (file)
@@ -21,15 +21,12 @@ PSQLVERSION=`psql -d template1 -c 'select version()' $* | awk '/PostgreSQL/ {pri
 # This must be updated for future versions of PostgreSQL
 #
 case ${PSQLVERSION} in
-   9.*)
+   8.[456789] | 9.* | 10.*)
        ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'"
    ;;
-   8.[456789])
-       ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'"
-    ;;
-    *)
+   *)
        ENCODING="ENCODING 'SQL_ASCII'"
-    ;;
+   ;;
 esac