]> granicus.if.org Git - postgresql/commitdiff
Fix for arm32 and fix for dbname with dash.
authorBruce Momjian <bruce@momjian.us>
Thu, 18 Nov 1999 21:47:41 +0000 (21:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 18 Nov 1999 21:47:41 +0000 (21:47 +0000)
src/bin/createdb/createdb.sh
src/bin/destroydb/destroydb.sh
src/include/port/bsd.h
src/include/storage/s_lock.h

index 5ee828660d3e73efd0dc1321012b08880e2d53bd..df3f0c1d393d43dd34d3009d097492e8a4ac1355 100644 (file)
@@ -11,7 +11,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.11 1998/09/03 02:12:14 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.12 1999/11/18 21:47:37 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -111,7 +111,7 @@ else
        fi
 fi
 
-psql $PASSWDOPT -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database $dbname $location $encoding" template1
+psql $PASSWDOPT -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database \"$dbname\" $location $encoding" template1
 
 if [ $? -ne 0 ]; then
        echo "$CMDNAME: database creation failed on $dbname."
index 92ee73a390646ed4ee78c604e8e2480a838ea67f..71bafc8270beaf9eae843a823ead29c559e15d4d 100644 (file)
@@ -11,7 +11,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.8 1997/06/02 02:53:00 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.9 1999/11/18 21:47:37 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -75,7 +75,7 @@ fi
 
 if [ "$answer" = y ]
 then
-  psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "drop database $dbname" template1
+  psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "drop database \"$dbname\"" template1
     if [ $? -ne 0 ]
        then echo "$CMDNAME: database destroy failed on $dbname."
        exit 1
index c3a6adb9538cca9f42b5937f99cc010ccfb83cf2..8406844d079e7683b8466d0a970846291d62f94e 100644 (file)
@@ -24,7 +24,7 @@
 #define HAS_TEST_AND_SET
 #endif
 
-#if defined(__arm32__)
+#if defined(__arm__)
 #define HAS_TEST_AND_SET
 #endif
 
index 04caa52960ab8aa79e05474ff3fa9c453be0a043..e23e2076e4bd8fd0ac2a3dcefadce65f6debf295 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.65 1999/11/06 01:55:43 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.66 1999/11/18 21:47:41 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -124,7 +124,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res));
 
 
 
-#if defined(__arm32__) || defined(__arm__)
+#if defined(__arm__) || defined(__arm__)
 #define TAS(lock) tas(lock)
 
 static __inline__ int
@@ -136,7 +136,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
         return (int) _res;
 }
 
-#endif   /* __arm32__ */
+#endif   /* __arm__ */