I'm trying to move form 2.0.x to 2.1.1 and i have this insert
insert into Asset (modifiedTime, guid, hostname, majorType, version, importance, addresses, attributes, tags) values ( date() ,? ,? ,? ,? ,?,?,?,?) This works fine in 2.0.2 when i execute this, it gets this error ! com.orientechnologies.orient.core.exception.OValidationException: The field 'Asset.attributes' has been declared as EMBEDDEDMAP but an incompatible type is used. Value: 33d5c28c-169a-4f67-8bec-9046532615c2 ! at com.orientechnologies.orient.core.record.impl.ODocument.validateField(ODocument.java:331) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.record.impl.ODocument.validate(ODocument.java:2002) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2415) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:120) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1768) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1759) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:81) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.sql.OCommandExecutorSQLInsert.saveRecord(OCommandExecutorSQLInsert.java:323) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.sql.OCommandExecutorSQLInsert.execute(OCommandExecutorSQLInsert.java:224) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:90) ~[assets.jar:0.0.1-SNAPSHOT] ! at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1469) ~[assets.jar:0.0.1-SNAPSHOT] if i remove the date() function form the insert it works. -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
