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

  • Home
  • SEARCH
  • 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 7195311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:33:10+00:00 2026-05-28T20:33:10+00:00

I’m working on a JSF project.Our development based on MySql 5.1, JBoss 4.22GA and

  • 0

I’m working on a JSF project.Our development based on MySql 5.1, JBoss 4.22GA and i got some trouble today and hope someone can help me to figure it out.

Here‘s the situation:for some reasons i have to do some update to a table and then see if we can find these changes out.To do so, i call the method something like below.

create table `table` (
    id int,
    update_date datetime,
);

// consider this method as one transaction
somemethod() {

    A. select max(update_date) from table where id = 1;

    B. update table set update_date = now() where id = 1;

    C. select max(update_date) from table where id = 1;
}

Note that :

1.we break after A (you know using break point in eclipse)

2.we execute B from somewhere outside application (which means execute update in something like GUI DB manager)

3.after B we proceed to execute C (same we did as A)

and we got same result as we did at A. But we can confirm that change in the GUI DB manager. Dose any one can tell me why did this happen? I’ll be very appreciate for any helping. Thank you! (And thus my bad english i hope i’ve already made myself clear enough.)

  • 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-05-28T20:33:11+00:00Added an answer on May 28, 2026 at 8:33 pm

    The default transaction isolation level in MySQL is REPEATABLE READ, this is what the manual tells about it

    If the transaction isolation level is REPEATABLE READ (the default
    level), all consistent reads within the same transaction read the
    snapshot established by the first such read in that transaction. You
    can get a fresher snapshot for your queries by committing the current
    transaction and after that issuing new queries.

    In short that means if you read something during a transaction, all following reads of the same data in the same transaction will return the same result, which is exactly what you’re seeing.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i got an object with contents of html markup in it, for example: string

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.