Closed OpakAlex closed 8 years ago
This happens when i send atoms not binary. This fixed. But i have another problem:
{:error, {4280744, "Unsupported type in bind"}}
bind_args = [{":version", 'SQLT_INT'}, {":inserted_at", 'SQLT_DAT'}]
args = [{<<120, 116, 1, 6, 15, 0, 12>>, 0}]
Please try binaries as variable names.
Like:
bind_args = [{<<":version">>, 'SQLT_INT'}, {<<":inserted_at">>, 'SQLT_DAT'}]
args = [{0, <<120, 116, 1, 6, 15, 0, 12>>}]
Note: args
also needs to match bind_args
sequence
Yes, i understand, also in elixir 'SQLT_INT'
must be : SQLT_INT
I have no elixir-fu :P. So, did it work?
I am curious. Is your plugin is in opensource already?
we working on it. yes this bug fixed :) https://github.com/api-hogs/ecto-oracle
When i try insert some values to table, i have this error:
My table:
"CREATE TABLE \"schema_migrations\" (\"version\" NUMBER, \"inserted_at\" DATE)"
My insert: