JSQLParser / JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern

Home Page:https://github.com/JSQLParser/JSqlParser/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DoubleValue.setValue does not set stringValue

Qnzvna opened this issue · comments

When using setValue on DoubleValue object only the value is set. The setter does not change stringValue which is then used in toString method.

Following test would fail:

    @Test
    public void shouldSetStringValue() {
        final DoubleValue doubleValue = new DoubleValue("42");

        doubleValue.setValue(43D);

        assertEquals(43D, doubleValue.getValue());
        assertEquals("43.0", doubleValue.toString());
    }

Thank you for reporting, I would fix this asap.

Thanks, I've opened PR -> #2009, so you can review.

@manticore-projects Thanks for reviewing. When you will be able to release a new version to maven ?

Greetings, we don't have any exact date for a new release 5.0 but my take is: before End of June.
Please note that as a matter of fact, JSQLParser has become a rolling-release where every last snapshot is deemed to be the latest greatest version and "stable release" does not bear any actual advantage.