提交 339938cf 编写于 作者: S Serge Rider

Value binder model

上级 a7e2deb9
......@@ -26,6 +26,6 @@ import org.jkiss.dbeaver.model.struct.DBSAttributeBase;
public interface DBDValueBinder extends DBDValueHandler
{
String makeQueryBind(DBSAttributeBase attribute) throws DBCException;
String makeQueryBind(DBSAttributeBase attribute, Object value) throws DBCException;
}
......@@ -361,7 +361,7 @@ public abstract class JDBCTable<DATASOURCE extends DBPDataSource, CONTAINER exte
DBDValueHandler valueHandler = handlers[i];
if (valueHandler instanceof DBDValueBinder) {
query.append(((DBDValueBinder) valueHandler) .makeQueryBind(attribute));
query.append(((DBDValueBinder) valueHandler) .makeQueryBind(attribute, attributeValues[i]));
} else {
query.append("?"); //$NON-NLS-1$
}
......@@ -439,7 +439,7 @@ public abstract class JDBCTable<DATASOURCE extends DBPDataSource, CONTAINER exte
query.append(getAttributeName(attribute)).append("="); //$NON-NLS-1$
DBDValueHandler valueHandler = handlers[i];
if (valueHandler instanceof DBDValueBinder) {
query.append(((DBDValueBinder) valueHandler) .makeQueryBind(attribute));
query.append(((DBDValueBinder) valueHandler).makeQueryBind(attribute, attributeValues[i]));
} else {
query.append("?"); //$NON-NLS-1$
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册