Skip to content

domain: accept BIGINT type for accept_subdomain column #3653

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ovidiusas
Copy link
Member

Summary
accept BIGINT type for accept_subdomain column

Details
If using a VIEW (instead of a regular TABLE) and populating the accept_subdomain column with a default value, in MySQL we have the option to convert to UNSIGNED and this will create a BIGINT.

Something like:

CREATE VIEW domain (
    id,
    domain,
    attrs,
    accept_subdomain,
    last_modified
) AS SELECT
    ...
   CAST(0 AS UNSIGNED),
   ...
FROM my_table;

Allowing accept_subdomain to be parsed as a BIGINT solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant