Skip to content
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

error on update MariaDB with a patch #27

Open
yoranns opened this issue Feb 21, 2023 · 1 comment
Open

error on update MariaDB with a patch #27

yoranns opened this issue Feb 21, 2023 · 1 comment

Comments

@yoranns
Copy link

yoranns commented Feb 21, 2023

Hi Ddevs, one more problem, hehe. Trying to update a register. I imagine you used a SQLite code on MariaDB module.
Thanks for the help.

[trace] (void) rorm_db_update(
        const(DBHandle)@561F632EC400, 
        DBTransactionHandle@0, 
        paciente, 
        [const(FFIUpdate)(pacNome, FFIValue("Name")), const(FFIUpdate)(pacNascimento, FFIValue(const(FFIDate)(2023, 2, 24))), const(FFIUpdate)(pacMae, FFIValue("Name")), const(FFIUpdate)(pacPai, FFIValue("Name")), const(FFIUpdate)(pacArquivoFoto, FFIValue("0")), const(FFIUpdate)(pacRua, FFIValue("Name")), const(FFIUpdate)(pacNumero, FFIValue("1")), const(FFIUpdate)(pacBairro, FFIValue("Name")), const(FFIUpdate)(pacCidade, FFIValue("Name")), const(FFIUpdate)(pacUF, FFIValue("MG")), const(FFIUpdate)(pacHistorico, FFIValue("Provável TDAH")), const(FFIUpdate)(pacMedicacao, FFIValue("Oxalato")), const(FFIUpdate)(pacSituacao, FFIValue("ATIVO")), const(FFIUpdate)(pacDataCadastro, FFIValue(const(FFIDateTime)(2000, 1, 1, 0, 0, 0)))], 
        (no condition), 
        extern (C) void(void*, ulong, scope RormError)@561F60D30450, 
        void@7FEDF5BFBAB0
)
[trace] Callback (failed) -> database error: sqlx error: error returned from database: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OR ABORT paciente SET pacNome = ?, pacNascimento = ?, pacMae = ?, pacPai = ?,...' at line 1
@WebFreak001
Copy link
Member

currently the MariaDB and PostgreSQL drivers have issues upstream, should be fixed with the next rorm update & FFI update in dorm though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants