From: Kevin M. Rosenberg Date: Sun, 23 May 2004 11:59:10 +0000 (+0000) Subject: r9451: 23 May 2004 Kevin Rosenberg X-Git-Tag: v3.8.6~396 X-Git-Url: http://git.kpe.io/?p=clsql.git;a=commitdiff_plain;h=3310e4f8fcec920ce6d3d60878f13899746c70c7 r9451: 23 May 2004 Kevin Rosenberg * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that has reversed class slots, change the default for ordered-class-slots so that slots are now in the same order an in the def-view-class. --- diff --git a/ChangeLog b/ChangeLog index 361840b..fce7ca4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +23 May 2004 Kevin Rosenberg + * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that + has reversed class slots, change the default for ordered-class-slots so that slots + are now in the same order an in the def-view-class. + 22 May 2004 Kevin Rosenberg * Version 2.10.21 released * sql/sequences.lisp: Move generic sequence functions here from db-sqlite, diff --git a/sql/kmr-mop.lisp b/sql/kmr-mop.lisp index 530bee4..8fccf57 100644 --- a/sql/kmr-mop.lisp +++ b/sql/kmr-mop.lisp @@ -57,8 +57,8 @@ (b (pushnew :mop-slot-order-reversed cl:*features*))))) (defun ordered-class-slots (class) - #+mop-slot-order-reversed (class-slots class) - #-mop-slot-order-reversed (reverse (class-slots class))) + #+mop-slot-order-reversed (reverse (class-slots class)) + #-mop-slot-order-reversed (class-slots class)) ;; Lispworks has symbol for slot rather than the slot instance (defun %svuc-slot-name (slot) diff --git a/sql/objects.lisp b/sql/objects.lisp index 3d031e2..63cef6a 100644 --- a/sql/objects.lisp +++ b/sql/objects.lisp @@ -89,7 +89,7 @@ in DATABASE which defaults to *DEFAULT-DATABASE*." (push res schemadef)))) (unless schemadef (error "Class ~s has no :base slots" self)) - (create-table (sql-expression :table (view-table self)) schemadef + (create-table (sql-expression :table (view-table self)) (nreverse schemadef) :database database :constraints (database-pkey-constraint self database)) (push self (database-view-classes database)) diff --git a/sql/sequences.lisp b/sql/sequences.lisp index 1e3ef9e..54da54e 100644 --- a/sql/sequences.lisp +++ b/sql/sequences.lisp @@ -1,7 +1,7 @@ ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; -;;;; $Id:$ +;;;; $Id$ ;;;; ;;;; Generic sequence implementation. Backends should use native sequences if ;;;; are available.