Go to file
Thomas Risberg 9fb6e2313c Fix single quote parsing in NamedParameterUtils
Prior to this change, single quotes were incorrectly parsed by
NamedParameterUtils#parseSqlStatement, resulting in incorrect parameter
counts:

    ParsedSql sql = NamedParameterUtils
            .parseSqlStatement("SELECT 'foo''bar', :xxx FROM DUAL");
    assert sql.getTotalParameterCount() == 0 // incorrect, misses :xxx

That is, presence of the single-quoted string caused the parser to
overlook the named parameter :xxx.

This commit fixes the parsing error such that:

    ParsedSql sql = NamedParameterUtils
            .parseSqlStatement("SELECT 'foo''bar', :xxx FROM DUAL");
    assert sql.getTotalParameterCount() == 1 // correct

Issue: SPR-8280
2012-02-06 09:47:17 +01:00
build-spring-framework Better support for @SessionAttributes in clustered environments 2012-02-03 12:23:24 -05:00
org.springframework.aop Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.asm Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.aspects Relax -aspects dependence on -test (compile=>test) 2012-02-04 17:49:11 +01:00
org.springframework.beans Fix method equality bug in ExtendedBeanInfo 2012-02-02 15:24:52 +01:00
org.springframework.context Respect @Configuration(value) for @Imported classes 2012-02-03 17:54:03 +01:00
org.springframework.context.support Update Quartz links in reference and Javadoc 2012-01-31 15:18:05 +01:00
org.springframework.core Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.expression Merge pull request #21 from aclement/spr9038 2012-02-01 22:47:36 +01:00
org.springframework.instrument Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.instrument.tomcat Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.integration-tests Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.jdbc Fix single quote parsing in NamedParameterUtils 2012-02-06 09:47:17 +01:00
org.springframework.jms Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.orm Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.oxm Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.spring-library Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.spring-parent Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.test Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.transaction Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.web Allow ACI classes access to servlet context params 2012-02-04 23:13:52 +01:00
org.springframework.web.portlet Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
org.springframework.web.servlet Allow ACI classes access to servlet context params 2012-02-04 23:13:52 +01:00
org.springframework.web.struts Add <license> section to 3.1.x Maven poms 2012-01-31 15:18:05 +01:00
spring-build Add spring-build 2.5.2 2011-12-16 11:56:51 +01:00
spring-framework-reference SPR-9085 Correct typo. 2012-02-02 09:56:02 -05:00
.gitignore Ignore Gradle-related files and directories 2012-01-31 15:18:05 +01:00
README.md Update links to reference and api documentation 2012-01-16 22:16:43 +01:00
build.properties Increment version to 3.1.1.BUILD-SNAPSHOT 2011-12-16 11:59:06 +01:00
build.versions Convert CRLF (dos) to LF (unix) 2011-12-21 14:52:47 +01:00
ci-build.properties adding properties file to simplify ant use in Bamboo CI build 2008-12-17 15:47:14 +00:00
eclipse-code-formatter.xml h2 embedded db support; updated formatting conventions not to auto-format javadoc; added hsqldb and h2 to jdbc maven pom as optional deps 2009-05-09 22:27:05 +00:00
spring-framework.ipr IntelliJ IDEA 11 project setup 2011-12-16 11:56:51 +01:00
spring-framework.psf Renamed org.springframework.instrument.classloading module to org.springframework.instrument.tomcat 2009-09-25 12:51:58 +00:00

README.md

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

The framework also serves as the foundation for Spring Integration, Spring Batch and the rest of the Spring family of projects. Browse the repositories under the SpringSource organization on GitHub for a full list.

.NET and Python variants are available as well.

Downloading artifacts

Instructions on downloading Spring artifacts via Maven and other build systems are available via the project wiki.

Documentation

See the current Javadoc and Reference docs.

Getting support

Check out the Spring forums and the Spring tag on StackOverflow. Commercial support is available too.

Issue Tracking

Spring's JIRA issue tracker can be found here. Think you've found a bug? Please consider submitting a reproduction project via the spring-framework-issues repository. The readme provides simple step-by-step instructions.

Building from source

Instructions on building Spring from source are available via the project wiki.

Contributing

Pull requests are welcome; you'll be asked to sign our contributor license agreement (CLA). Trivial changes like typo fixes are especially appreciated (just fork and edit!). For larger changes, please search through JIRA for similiar issues, creating a new one if necessary, and discuss your ideas with the Spring team.

Staying in touch

Follow @springframework and its team members on Twitter. In-depth articles can be found at the SpringSource team blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.