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 8896565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:06:23+00:00 2026-06-15T00:06:23+00:00

I have extremely strange problem, which drives me crazy all day. I have a

  • 0

I have extremely strange problem, which drives me crazy all day. I have a simple MySQL table with few columns. One column is int(11) NULL. When I update its value, it works as expected. However, when I update its value second time, it gets assigned “0” value.

I have tested this same behaviour on my MySQL 5.1.58-1ubuntu1 and on other MySQL 5.0.96-community and both behave exactly the same. So it apparently is not problem of one version MySQL.

It is difficult for me to explain, but I have attached 2 screenshots which will tell you much better where is the better.

First screenshot is structure of my table I am updating:

table structure

And here is shown SQL queries beeing executed, where you can see, that first update is correct and the second produces “0” value in column “invoice_number” with no reason:

enter image description here

Am I overlooking something obvious ? It really drives me crazy, because it doesn’t make any sense to me…

Thank you for any help in advance…

EDIT: I have tried using only numbers in my queries and this is result (very strange for me as well):

enter image description here

  • 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-15T00:06:24+00:00Added an answer on June 15, 2026 at 12:06 am

    Ok, I finally figured it out. The problem was somewhere else, not in MySQL itself. I have copied all those SQL queries shown in my question from MySQL query log, so I never suspected there could be something weird. However there was – UTF-8 Byte order mark (EF BB BF) at the beginning of the “35” value and it was, of course, not visible.

    The first update query had its origin from different place of my app and its value “30” was only string(2). But when I did var_dump on values in the second query, I noticed that “35” is actually string(5). This value came from jQuery’s $.get() call and had this BOM attached to it …

    Two days of life spent on such an “invisible”…

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

Sidebar

Related Questions

Border ALL the things! I'm writing a HTML table and I'm getting extremely strange
I have an extremely strange Problem, while trying to develop for android on eclipse
This is extremely strange, and I'm hoping someone will have some insights to make
I have an extremely simple page that I'm trying to view in the Facebook
I have an extremely simple web application running in Tomcat using Spring 3.0.2, Hibernate
I am currently learning F# and have tried (an extremely) simple example of FizzBuzz.
I have a SQL script which is extremely large (about 700 megabytes). I am
I have an extremely odd problem in my JUnit tests that I just can't
I'm having an extremely strange problem with ant. This snippet produces a set of
I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic

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.