Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
submarine
submarine
Commits
5c894acb
Commit
5c894acb
authored
Aug 14, 2007
by
ryszard.szopa
Browse files
documentation: problem with create-table
darcs-hash:3e50766bd8901035d11e29520af841af53f3c7cb
parent
99421228
Changes
1
Hide whitespace changes
Inline
Side-by-side
db.lisp
View file @
5c894acb
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
CLASS in the connected database. If CLASS is a symbol, the class it
CLASS in the connected database. If CLASS is a symbol, the class it
names is used."
))
names is used."
))
;; FIXME: CREATE-TABLE tests for the right columns and column-types,
;; but doesn't test if the constraints of the table are right. So, if
;; we change a foreign key in the class, PostgreSQL doesn't notice it.
(
defmethod
create-table
((
class
db-class
))
(
defmethod
create-table
((
class
db-class
))
(
unless
(
class-finalized-p
class
)
(
unless
(
class-finalized-p
class
)
(
error
"The class is not finalized."
))
(
error
"The class is not finalized."
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment