You're right ! In fact, I think the problem is in cn1-data-lib-access. As 
object array is construct, it can't receive NULL value since all object are 
converted to String. For example, for insertion :

/**
* Gets generic insert args for insert statement for the given map of row 
data.
*
* @param m
*            Map containing row data to insert. Maps column names to column 
values.
* @return Object[] array that can be used in Database.execute()
* 
*/
private Object[] insertArgs(Map m) {
List largs = new ArrayList();
for (Map.Entry<String, ColType> e : colTypes.entrySet()) {
if ("id".equals(e.getKey()) && m.get("id") == null) {
continue;
}
if ("id".equals(e.getKey()) && NumberUtil.longValue(m.get("id")) <= 0) {
continue;
}
largs.add("" + m.get(e.getKey()));
}

return largs.toArray();
}


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/47406ca6-7d14-4d79-9d6d-fff5247a5625%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to