Skip to content
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

dlh_googlemap_zoom has invalid default value #58

Closed
fritzmg opened this issue May 9, 2016 · 1 comment
Closed

dlh_googlemap_zoom has invalid default value #58

fritzmg opened this issue May 9, 2016 · 1 comment

Comments

@fritzmg
Copy link

fritzmg commented May 9, 2016

In the DCA of tl_content, the SQL definition for the field dlh_googlemap_zoom is defined as follows:

"int(10) unsigned NOT NULL default '0'"

It's an integer field that cannot be NULL and defaults to zero, if no value is given during an INSERT operation.

However, the default value in the DCA is defined as follows:

'default' => ''

This will lead to a MySQL error, if the MySQL server runs in a strict mode, since you cannot insert an empty string into such a field then.

The default value should be defined as follows:

'default' => 0
@delahaye
Copy link
Owner

You're right, thanks. I'll set it to an integer value with the next version.

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

No branches or pull requests

2 participants