Go to file
Sam Brannen 569ce840cf Ignore comments when searching for statement delimiter in ScriptUtils
Prior to this commit, the implementations of
ScriptUtils.containsSqlScriptDelimiters() in spring-jdbc and
spring-r2dbc did not ignore comments when searching for the statement
delimiter within an SQL script. This resulted in subtle bugs if a
comment contained a single single-quote or single double-quote, since
the absence of the closing single-quote or double-quote led the
algorithm to believe that it was still "within a text literal". Similar
issues could arise if a comment contained the sought statement
delimiter but the rest of the script did not contain the sought
statement delimiter. In such cases, the algorithms in ScriptUtils could
erroneously choose an incorrect statement delimiter -- for example,
using the fallback statement delimiter instead of the delimiter
specified by the user.

This commit avoids such bugs by ignoring single-line comments and block
comments when searching for the statement delimiter within an SQL
script.

Closes gh-26911
2021-05-14 14:23:27 +02:00
.github Update link for reporting security issues 2021-01-26 21:39:29 +00:00
buildSrc Introduce Gradle Toolchain support in build 2021-03-15 14:33:41 +01:00
ci Make script executable 2021-05-05 14:26:12 +02:00
framework-bom Remove BOM workaround 2020-04-28 15:14:02 +02:00
gradle Store resolved toolchain info as custom values in build scan 2021-05-05 15:19:27 +02:00
integration-tests Drop explicit zeroing at instantiation of Atomic* objects 2020-10-06 15:45:12 +02:00
spring-aop Polishing 2021-04-29 16:53:53 +02:00
spring-aspects Polishing 2020-11-16 17:42:22 +01:00
spring-beans Avoid memory leak when PropertyComparator is reused 2021-04-30 15:08:32 +02:00
spring-context Nullability refinements and related polishing 2021-05-11 16:50:19 +02:00
spring-context-indexer CandidateComponentsIndexer introspects any kind of class (including records) 2021-05-11 15:49:15 +02:00
spring-context-support Log delegate service initialization at debug level (instead of info) 2021-05-11 15:46:41 +02:00
spring-core Polishing 2021-05-12 11:31:15 +02:00
spring-expression Polish SpEL SelectionAndProjectionTests 2021-04-26 16:23:21 +02:00
spring-instrument Delete obsolete log4j config 2020-03-18 17:01:01 +01:00
spring-jcl Polishing 2020-01-28 21:56:35 +01:00
spring-jdbc Ignore comments when searching for statement delimiter in ScriptUtils 2021-05-14 14:23:27 +02:00
spring-jms Expose current cached session count 2021-05-11 15:47:15 +02:00
spring-messaging Correct clientInboundChannel assertion (includes constructor javadoc) 2021-05-11 15:49:38 +02:00
spring-orm Polish tests 2021-04-12 20:11:14 +02:00
spring-oxm Polish Jaxb2MarshallerTests 2021-05-04 13:46:31 +02:00
spring-r2dbc Ignore comments when searching for statement delimiter in ScriptUtils 2021-05-14 14:23:27 +02:00
spring-test Increase the likelihood that timed tests pass on CI server 2021-05-11 16:16:18 +02:00
spring-tx TransactionSynchronization does not support @Order (just Ordered interface) 2021-05-11 15:45:05 +02:00
spring-web Fix grammar in inline comment in HttpStatus 2021-05-13 16:21:45 +02:00
spring-webflux Fix parameter bug of handler inside the filterFunction DSL 2021-05-10 09:35:56 +02:00
spring-webmvc Nullability refinements and related polishing 2021-05-11 16:50:19 +02:00
spring-websocket Update CORS Javadoc in spring-websocket 2021-04-13 17:43:40 +01:00
src Fix punctuation in Custom Cache Resolution section of ref docs 2021-05-13 15:30:58 +02:00
.editorconfig Add EditorConfig 2017-06-12 08:07:54 +02:00
.gitattributes Ensure line endings for binary files are not modified in Git 2019-10-18 11:56:18 +02:00
.gitignore Add vscode folder to .gitignore 2021-02-23 17:43:39 +01:00
.mailmap Change gopivotal.com to pivotal.io 2014-10-05 18:12:50 +02:00
CODE_OF_CONDUCT.adoc URL Cleanup 2019-03-21 15:08:55 -05:00
CONTRIBUTING.md Update link to AsciiDoc Tooling 2021-02-16 18:28:19 +01:00
LICENSE.txt Add LICENSE.txt file 2019-08-20 22:01:12 +02:00
README.md Add section of CI builds 2021-03-03 11:42:35 +01:00
SECURITY.md Create SECURITY.md 2019-05-23 11:36:52 -04:00
build.gradle Upgrade to Reactor 2020.0.7 2021-05-11 15:34:41 +02:00
gradle.properties Next development version (v5.3.8-SNAPSHOT) 2021-05-12 05:50:28 +00:00
gradlew Upgrade to Gradle 6.6 2020-08-11 12:10:35 +02:00
gradlew.bat Upgrade to Gradle 6.6 2020-08-11 12:10:35 +02:00
import-into-eclipse.md Polishing regarding AJDT versions 2020-01-13 17:15:27 +01:00
import-into-idea.md URL Cleanup 2019-03-21 15:08:55 -05:00
settings.gradle Store resolved toolchain info as custom values in build scan 2021-05-05 15:19:27 +02:00

README.md

Spring Framework Build Status Revved up by Gradle Enterprise

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section as reference for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), Github wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Micro-Benchmarks

See the Micro-Benchmarks Wiki page.

Build from Source

See the Build from Source Wiki page and the CONTRIBUTING.md file.

Continuous Integration Builds

Information regarding CI builds can be found in the Spring Framework Concourse pipeline documentation.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

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