This is an automated email from the ASF dual-hosted git repository.

vjasani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new 7fdbe2433a PHOENIX-7614 : Fix atmoic update return result with case 
sensitive table name (#2157)
7fdbe2433a is described below

commit 7fdbe2433a829d257484b46dc5f6d9c62ff8103f
Author: Palash Chauhan <palashc...@gmail.com>
AuthorDate: Fri May 16 17:56:23 2025 -0700

    PHOENIX-7614 : Fix atmoic update return result with case sensitive table 
name (#2157)
---
 .../src/main/java/org/apache/phoenix/util/TupleUtil.java                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/phoenix-core-client/src/main/java/org/apache/phoenix/util/TupleUtil.java 
b/phoenix-core-client/src/main/java/org/apache/phoenix/util/TupleUtil.java
index 7d2a1f2995..619b073b78 100644
--- a/phoenix-core-client/src/main/java/org/apache/phoenix/util/TupleUtil.java
+++ b/phoenix-core-client/src/main/java/org/apache/phoenix/util/TupleUtil.java
@@ -233,7 +233,7 @@ public class TupleUtil {
     public static ResultSet getResultSet(Tuple toProject, String tableName, 
Connection conn)
         throws SQLException {
         try (PhoenixResultSet resultSet = (PhoenixResultSet) 
conn.createStatement()
-            .executeQuery("SELECT * FROM " + tableName)) {
+            .executeQuery("SELECT * FROM \"" + tableName + "\"")) {
             PTable pTable =
                 
resultSet.getStatement().getQueryPlan().getContext().getResolver().getTables()
                     .get(0).getTable();

Reply via email to