Pavel Tupitsyn created IGNITE-27732:
---------------------------------------
Summary: SQL API: reference to execute is ambiguous
Key: IGNITE-27732
URL: https://issues.apache.org/jira/browse/IGNITE-27732
Project: Ignite
Issue Type: Bug
Components: sql ai3
Affects Versions: 3.2
Reporter: Pavel Tupitsyn
Fix For: 3.2
IGNITE-25403 introduced overloads without tx to the SQL API. Some of those
overloads are problematic:
* Break existing code
* Difficult to use in the new code
The following code does not compile:
{code}
execute(null, statement);
{code}
Error:
{code}
java: reference to execute is ambiguous
both method execute(java.lang.String,java.lang.Object...) in
org.apache.ignite.sql.IgniteSql and method
execute(org.apache.ignite.tx.Transaction,org.apache.ignite.sql.Statement,java.lang.Object...)
in org.apache.ignite.sql.IgniteSql match
{code}
Problematic methods:
{code}
execute(String, Object...)
executeAsync(String, Object...)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)