[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] quote username



This is required when the username contains, for example, a minus.
---
 integration-tests/setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/integration-tests/setup b/integration-tests/setup
index ae3ff6e..f3f339c 100755
--- a/integration-tests/setup
+++ b/integration-tests/setup
@@ -11,7 +11,7 @@ dak-setup() {
 
   (cd ${setupdir}; ./init_db)
   if [[ ${PGUSER:-} != dak ]]; then
-    psql -c "GRANT dak TO ${PGUSER}"
+    psql -c "GRANT dak TO \"${PGUSER}\""
   fi
   psql -f ${setupdir}/current_schema.sql -d projectb >/dev/null
   unset PGDATABASE
-- 
2.1.4



Reply to: