Skip to content

Commit 2a3d9df

Browse files
committed
Added "end case" part
1 parent 1b9e0b2 commit 2a3d9df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/utplsql/api/db/DynamicParameterList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void setParam(CallableStatement statement, int index) throws SQLException
189189

190190
@Override
191191
public String getSql(String key) {
192-
return key + " => (case ? when 1 then true else false)";
192+
return key + " => (case ? when 1 then true else false end)";
193193
}
194194
}
195195

src/test/java/org/utplsql/api/db/DynamicParameterListTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void can_add_boolean() throws SQLException {
6868
.add("a_bool", true)
6969
.build();
7070

71-
assertEquals("a_bool => (case ? when 1 then true else false)", paramList.getSql());
71+
assertEquals("a_bool => (case ? when 1 then true else false end)", paramList.getSql());
7272

7373
paramList.setParamsStartWithIndex(stmt, 3);
7474
verify(stmt).setInt(3, 1);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy