-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
插入数据后,返回的result是null,报错Only support convert boolean/float/int/string/map/list to nebula.Value but wasjava.sql.Timestamp #89
Comments
我将valueFmt 的函数转换成自己自定义的,date是转换成string而不用datetime()
|
使用ng_args可以拿到最原始的数据类型 |
这个是你的解决方案吗 刚刚跟了一下代码,感觉自己的回复理解错了。 |
并不是的,我又发现 数据查询失败:Only support convert boolean/float/int/string/map/list to nebula.Value but wasjava.math.BigDecimal 我是直接写的xml,项目都是动态的不允许我使用基类 |
有个新版本正在发布中,这个类型的问题一会儿一并修复哈~ |
好的谢谢, |
我在更新1.1.0后,发生报错:数据查询失败:Only support convert boolean/float/int/string/map/list to nebula.Value but wasjava.util.HashSet,但是我用的是自己拼接的字符串,插入的字段和value都是我字符串拼接的
|
1.1.0 没发布成功呀,可以在配置 ngbatis 的地方写把这段加进去,替换掉原有的 value setter COMPLEX_TYPE_AND_SETTER.put(
Set.class,
(Setter<Set<?>>) (set) -> {
List<Object> values = new ArrayList<>();
set.forEach(el -> values.add(toNebulaValueType(el)));
return values;
}); |
fix #89 BigDecimal / Set / Collection serialization to NebulaValue
因为ngbatis并没有对xml内的内容进行解析,不能确定哪些区分哪些参数是自己拼接哪些参数是给nebula占位符的 |
@hejiahuichengxuyuan
|
明白,谢谢大佬 |
The text was updated successfully, but these errors were encountered: