Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:54:25+00:00 2026-06-08T07:54:25+00:00

I am copying a system from an old server to a new(er) one for

  • 0

I am copying a system from an old server to a new(er) one for a company, I had no involvement with the development of the previous system. They have a current (complex) web page that inserts records into a database, and I don’t fully understand it. However, the code of each page and the database settings are exactly the same. When I try to insert an uncompleted form (on my version) I get Field 'invoiceNo' doesn't have a default value whereas submitting the same, uncompleted form on the previous system will create the (incomplete) data.

I have checked the settings for the culprit field, and it is set to Not Null, with a “Null” default value. Both databases are set up the same, so why is the same inserted data being treated differently?

Old MySQL version: 5.0.41-community-nt

New MySQL version: 5.5.20

Old MySQL Admin version: 1.2.12

New MySQL Admin version: 1.2.17

Sorry if it sounds like I don’t have much of a clue what I’m talking about – truth it I don’t as the old system is a stranger to me and it is huge and complex. Can answer any questions though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:54:26+00:00Added an answer on June 8, 2026 at 7:54 am

    It could be that the new server is setup as “strict” or a backwards compatibility break was caused when they introduced the new version.

    Your problem is though that the field is expecting “not null” however you are providing null (ie not providing it the data it is setup to expect) if you alter this field to default to “0” then the null fields will default to 0 instead and the data should be added as expected. (But you shouldn’t be submitting “null” if the field is expecting “not null”, so I would look to see the route cause of that before hacking it with default=0!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have generic Queue<T> ( System.Collections.Generic ) which is accessed for writing from one
I have a simple tray application for copying files from one location to multiple
I'm copying ListViewItems from one ListView to another, sth. like: foreach (ListViewItem item in
I'm having trouble copying a row from one table to another using sqlite3 in
I have a simple script which copies a file from one SMB mount to
I have a problem in copying the data in array from object variable which
We have a ftp system setup to monitor/download from remote ftp servers that are
I am copying a file from one folder into another folder. I would like
If I start copying a huge file tree from one position to another or
There is a limitation on Windows Server 2003 that prevents you from copying extremely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.