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

Field 'updateurl' doesn't have a default value #33

Closed
uiouio opened this issue Dec 13, 2012 · 2 comments
Closed

Field 'updateurl' doesn't have a default value #33

uiouio opened this issue Dec 13, 2012 · 2 comments

Comments

@uiouio
Copy link

uiouio commented Dec 13, 2012

A error occurred after add a new app.

A Database Error Occurred

Error Number: 1364

Field 'updateurl' doesn't have a default value

INSERT INTO razor_channel_product (product_id, description, date, user_id, productkey, channel_id) VALUES (2, '', '2012-12-13 03:52:15', '1', '551e7e078b9866d0774f52defe******', '7')

Filename: D:\razor\system\database\DB_driver.php

Line Number: 330

@uiouio uiouio closed this as completed Dec 13, 2012
@uiouio
Copy link
Author

uiouio commented Dec 13, 2012

It is cause by MySQL, to fix it,
1.open my.ini
update sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
to sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
2.restart MySQL.

@rockiee281
Copy link
Contributor

这么改治标不治本吧?原因在于数据库里头把移动端没有采集的字段也设为不允许为NULL了,我在测试的时候,修改了数据库的schema,把那些字段改为default NULL的

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