mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1186 - Tidy, remove H2MultiValueBind for now
This commit is contained in:
1 parent
c00b1849ef
commit
fb8db14f3a
2 files changed
+1
-30
No files matched your search
@@ -1,23 +0,0 @@
|
||||
package io.ebeaninternal.server.persist.platform;
|
||||
|
||||
import io.ebeaninternal.server.type.ScalarType;
|
||||
|
||||
/**
|
||||
* Multi value binder that uses SqlServers Table-value parameters
|
||||
* @author Roland Praml, FOCONIS AG
|
||||
*
|
||||
*/
|
||||
public class H2MultiValueBind extends AbstractMultiValueBind {
|
||||
|
||||
@Override
|
||||
public String getInExpression(boolean not, ScalarType<?> type, int size) {
|
||||
String arrayType = getArrayType(type.getJdbcType());
|
||||
if (arrayType == null) {
|
||||
return super.getInExpression(not, type, size);
|
||||
} else {
|
||||
StringBuilder sb = new StringBuilder(50);
|
||||
sb.append(" in (select * from table(x ").append(arrayType).append(" = ?)) ");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user