You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not know how long this wrong data type lurking at production code. But we noticed it when started to use 'Mojolicious::Plugin::GraphQL', which issues 'document_type_id' unknown data type: integer error.
PS. In theory we can create { data_type => 'integer NOT NULL' } and this will works.
Should we put quotes around data type to be more safe?
The text was updated successfully, but these errors were encountered:
KES777
changed the title
Table with wrong type could be created
Table with wrong data type could be created
Apr 8, 2023
Hi;
this looks like a bug in your code; i think the only sensible thing to do is allow the end user to pass through whatever they need.
I see that you raised this against the DBIC converter for GraphQL; that clearly takes the value straight out of DBIC. I don't even think it's a bug there, either.
How to reproduce: put space before type.
Generated migration script (Notice extra space before integer for
document_type_idcolumn):I do not know how long this wrong data type lurking at production code. But we noticed it when started to use 'Mojolicious::Plugin::GraphQL', which issues
'document_type_id' unknown data type: integererror.PS. In theory we can create
{ data_type => 'integer NOT NULL' }and this will works.Should we put quotes around data type to be more safe?
The text was updated successfully, but these errors were encountered: