Add support for Oracle bind marker scheme using R2DBC
We now support Oracle's bind marker scheme that identifies dynamic parameters using names that are prefixed with a colon such as `:P0_myparam`. Closes gh-26680
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -118,10 +118,12 @@ public final class BindMarkersFactoryResolver {
|
||||
|
||||
static {
|
||||
BUILTIN.put("H2", BindMarkersFactory.indexed("$", 1));
|
||||
BUILTIN.put("MariaDB", BindMarkersFactory.anonymous("?"));
|
||||
BUILTIN.put("Microsoft SQL Server", BindMarkersFactory.named("@", "P", 32,
|
||||
BuiltInBindMarkersFactoryProvider::filterBindMarker));
|
||||
BUILTIN.put("MySQL", BindMarkersFactory.anonymous("?"));
|
||||
BUILTIN.put("MariaDB", BindMarkersFactory.anonymous("?"));
|
||||
BUILTIN.put("Oracle", BindMarkersFactory.named(":", "P", 32,
|
||||
BuiltInBindMarkersFactoryProvider::filterBindMarker));
|
||||
BUILTIN.put("PostgreSQL", BindMarkersFactory.indexed("$", 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user