Editor 2.0.0 does not return the new created row. (Oracle Db)
Editor 2.0.0 does not return the new created row. (Oracle Db)
datatables editor 2.0.0 does not return the new created row. (Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production)
{
"data": [],
"debug": [
{
"query": "INSERT INTO \"AEC_PAUTAS\" ( \"NOMBRE_DE_PAUTA\", \"DESCRIPCION_DE_PAUTA\", \"USUA_USUARIO\" ) VALUES ( :NOMBRE_DE_PAUTA, :DESCRIPCION_DE_PAUTA, :USUA_USUARIO ) RETURNING \"ID\" INTO :editor_pkey_value",
"bindings": [
{
"name": ":NOMBRE_DE_PAUTA",
"value": "sdfsdf",
"type": null
},
{
"name": ":DESCRIPCION_DE_PAUTA",
"value": "sdfsdfsdfsdf",
"type": null
},
{
"name": ":USUA_USUARIO",
"value": "christian.meza",
"type": null
}
]
},
{
"query": "SELECT \"ID\" \"ID\", \"NOMBRE_DE_PAUTA\" \"NOMBRE_DE_PAUTA\", \"DESCRIPCION_DE_PAUTA\" \"DESCRIPCION_DE_PAUTA\", \"FECHA_CREACION\" \"FECHA_CREACION\", \"ESTADO\" \"ESTADO\", \"VIGENTE\" \"VIGENTE\", \"USUA_USUARIO\" \"USUA_USUARIO\" FROM \"AEC_PAUTAS\" WHERE \"ID\" = :where_0 ",
"bindings": [
{
"name": ":where_0",
"value": "",
"type": null
}
]
}
]
}
Replies
Looks like the primary key value wasn't read (note the
value: ''
in the binding for the SELECT query).What's the schema for your table please?
Allan
Hi Allan, I have created the table like this
and this is server script
Might be the issue. Could you add:
I presume that you don't want to allow the user to write to that field . Moveover, if you don't need them to see it either, then just drop that line altogether.
Allan
Thanks Allan!
Did that do it?
Allan