Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL error #1067 -


Guest

Recommended Posts

HI,

I am trying to use the Auspost contribution "auspost_v2[1].0.2_1"

 

I get an error message when i try to run the SQL strings

 

string:

CREATE TABLE geo_zones (

geo_zone_id int(11) NOT NULL auto_increment,

geo_zone_name varchar(32) NOT NULL default '',

geo_zone_description varchar(255) NOT NULL default '',

last_modified datetime default NULL,

date_added datetime NOT NULL default '',

PRIMARY KEY (geo_zone_id)

) TYPE=MyISAM;

 

error message:

#1067 - Invalid default value for 'date_added'

 

I dont know SQL well enough to decipher what the problem may be can some please give me a hand with this.

Kind regards,

raph

Link to comment
Share on other sites

I had exactly the same problem today and I found the solution by searching the forum (it took a while)

 

The answer is:

 

You would need to remove the default '' from the date_added line to make that work

 

Good Luck

 

Simon Guest

Link to comment
Share on other sites

  • 10 years later...

try changing it to this

date_added datetime NOT NULL,

or you can put a real date in for the default like below, but I would try the first one.

date_added datetime DEFAULT '1970-01-01 00:00:01' NOT NULL,

 

I'm not really a dog.

Link to comment
Share on other sites

set session sql_mode="";

 

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...