projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9957: 2 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
[clsql.git]
/
examples
/
clsql-tutorial.lisp
diff --git
a/examples/clsql-tutorial.lisp
b/examples/clsql-tutorial.lisp
index deb453c1ed5d73cffba4f5872ba2e0a53d361e0a..118ea2023ddb2f95756e6998460ef4ffce27e8a7 100644
(file)
--- a/
examples/clsql-tutorial.lisp
+++ b/
examples/clsql-tutorial.lisp
@@
-34,7
+34,8
@@
:type (string 100)
:initarg :email)
(companyid
:type (string 100)
:initarg :email)
(companyid
- :type integer)
+ :type integer
+ :initarg :companyid)
(company
:accessor employee-company
:db-kind :join
(company
:accessor employee-company
:db-kind :join
@@
-156,8
+157,8
@@
(let ((new-lenin (car
(clsql:select 'employee
(let ((new-lenin (car
(clsql:select 'employee
- :where [= [slot-value 'employee 'emplid] 1]
)
-
:flatp t
)))
+ :where [= [slot-value 'employee 'emplid] 1]
+
:flatp t)
)))
(format t "His new email is ~A"
(employee-email new-lenin)))
(format t "His new email is ~A"
(employee-email new-lenin)))