-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we change col-type
checking to another place?
#156
Comments
From here it looks like it's used in only 7 source files: https://github.com/search?q=repo%3Afukamachi%2Fmito%20col-type&type=code
Every single one that could be problematic calls mito/src/core/class/column.lisp Line 73 in 9a2f926
Therefore I think removing this error signaling should not actually affect the functionality of mito in any way, and it's safe to remove. What do you think? Do you agree? Would you accept a PR? |
I added a PR here: #155 It looks like one of the tests failed here https://github.com/fukamachi/mito/actions/runs/11612951970/job/32337587093#step:3:2828 Any ideas why? |
Discussed in #154
Originally posted by daninus14 October 31, 2024
Hi,
In the code for
initialize-instance
here (copied below for convenience):mito/src/core/class/column.lisp
Line 73 in 9a2f926
A check for
col-type
's presence is done by this code:This is causing issues for me with
compute-effective-slot-definition
here https://github.com/sbcl/sbcl/blob/master/src/pcl/std-class.lisp#L1278Here's the code for reference:
Because before I can
setf
thecol-type
myself in my owncompute-effective-slot-definition
method, it's signaling an error.Why is the error signaled on initialize-instance? Could we change that to somewhere else like whenever generating the SQL where it may make more sense? When we generate the SQL we need
col-type
to be defined. However at the time of initialization, I don't think it's needed.I think this is more sensible and allows for the project to be extensible. What do you think?
The text was updated successfully, but these errors were encountered: