Find foreign keys with #'string= by default.

Blind attempt at fixing #343 and #330, which now is on at the same
level.
This commit is contained in:
Dimitri Fontaine 2016-03-09 16:33:44 +01:00
parent c724018840
commit 57f7fd1d4e

View File

@ -250,7 +250,7 @@
"Find FKEY-NAME in TABLE and return the FKEY object of this name."
(find fkey-name (table-fkey-list table) :key key :test test))
(defmethod maybe-add-fkey ((table table) fkey-name fkey &key key test)
(defmethod maybe-add-fkey ((table table) fkey-name fkey &key key (test #'string=))
"Add the foreign key FKEY to the table-fkey-list of TABLE unless it
already exists, and return the FKEY object."
(let ((fkey (find-fkey table fkey-name :key key :test test)))