From 07da31380a70e959afdb8af8c5d773acf5562a4b Mon Sep 17 00:00:00 2001 From: Sabra Crolleton Date: Fri, 28 Aug 2020 08:10:24 -0400 Subject: [PATCH] Correct typo in docs using generated-as-identity The examples were missing the critical t value parameter --- doc/create-tables.html | 16 ++++++++++++---- doc/create-tables.org | 8 ++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/doc/create-tables.html b/doc/create-tables.html index 9f43ea3..d6545c2 100644 --- a/doc/create-tables.html +++ b/doc/create-tables.html @@ -533,19 +533,27 @@

(query (:create-table 'color
-         ((color-id :type int :generated-as-identity-always)
+         ((color-id :type int :generated-as-identity-always t)
           (color-name :type varchar))))
 
 (query (:create-table 'color
-         ((color-id :type int :generated-as-identity-by-default)
+         ((color-id :type int :generated-as-identity-by-default t)
           (color-name :type varchar))))
 
 (query (:create-table 'color
-         ((color-id :type int :identity-always)
+         ((color-id :type int :identity-always t)
           (color-name :type varchar))))
 
 (query (:create-table 'color
-         ((color-id :type int :identity-by-default)
+         ((color-id :type int :identity-by-default t)
           (color-name :type varchar))))
 
diff --git a/doc/create-tables.org b/doc/create-tables.org index 163642e..e6aa018 100644 --- a/doc/create-tables.org +++ b/doc/create-tables.org @@ -213,19 +213,19 @@ Note: The data type used for identity columns must be one of smallint, int or bi #+BEGIN_SRC lisp (query (:create-table 'color - ((color-id :type int :generated-as-identity-always) + ((color-id :type int :generated-as-identity-always t) (color-name :type varchar)))) (query (:create-table 'color - ((color-id :type int :generated-as-identity-by-default) + ((color-id :type int :generated-as-identity-by-default t) (color-name :type varchar)))) (query (:create-table 'color - ((color-id :type int :identity-always) + ((color-id :type int :identity-always t) (color-name :type varchar)))) (query (:create-table 'color - ((color-id :type int :identity-by-default) + ((color-id :type int :identity-by-default t) (color-name :type varchar)))) #+END_SRC