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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:17:38+00:00 2026-06-08T06:17:38+00:00

On a server running MySql 5.0.27, with a very simple query that uses REPLACE

  • 0

On a server running MySql 5.0.27, with a very simple query that uses REPLACE —

SELECT familyname, replace('{0} test' , '{0}', `familyname`) AS  `formattedname`
FROM family

I get a result where the second column has only been evaluated once:

familyname   formattedname
Andersen     Andersen test
Baker        Andersen test
Charles      Andersen test

On a development machine running MySql 5.5.9, same query and data, the results are as I would expect:

Andersen     Andersen test
Baker        Baker test
Charles      Charles test

Is this a MySql bug in the older version, or is there some other possibility (a server misconfiguration, an index error, etc?).

Thanks!

  • 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-08T06:17:39+00:00Added an answer on June 8, 2026 at 6:17 am

    This is a known bug. It was reported here.
    Either you can live with it, or you need to upgrade at least to MySQL 5.1.

    And if your software is compatible, why not upgrade to MySQL 5.5?

    I found the bug report using the search engine in the Mysql bugs database.

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

Sidebar

Related Questions

I have a myisam only dedicated 32 GB RAM mysql server that is running
I'm running SQL query for MySQL server with ... where name in (term1,term2,term3) I
I have a very simple INSERT statement being executed from a PHP script running
I'm seeing very poor query performance when running a stored routine on a MySQL
I have a very simple trigger. I cretaed it from Toad for mysql tool
I have a mysql database that is currently running very slow. There are a
I am running MySQL server on the server's which has following specifications - Dual
I'm testing MySQL as a replacement for SQL server and I'm running into something
I have XAMPP running on my desktop and can connect to the MySQL server
I got an app running on my SQL Server that is starting to slow

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.