You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Security is not as much of an issue, but it can lead to issues with some commands, for example if the file is named ' a.csv.
Trying to escape these edge cases in Python will lead to an imperfect re-implementation of the escaping logic like the original connector.
Ideally, the run_statement method should accept a list of substitution parameters like the Python connector
Listening for the MariaDB [] prompt causes some queries to never finish or truncate the output.
The Python connector will be more reliable as it is both officially supported and throughly tested.
The text was updated successfully, but these errors were encountered:
Whatever the fix for this ends up being it will likely also fix #20. I'm going to mark it as an enhancement even though it is borderline between bug and enhancement.
mariadb_kernel/mariadb_kernel/mariadb_client.py
Lines 21 to 27 in 0dddfe5
The current implementation of using the mariadb client cli has some limitations.
mariadb_kernel/mariadb_kernel/mariadb_client.py
Line 100 in 0dddfe5
The
run_statement
doesn't support parameter substitution, which can lead to unintentional SQL injections while adding more magics:mariadb_kernel/mariadb_kernel/maria_magics/load.py
Line 46 in 362e378
mariadb_kernel/mariadb_kernel/maria_magics/load.py
Line 57 in 362e378
Security is not as much of an issue, but it can lead to issues with some commands, for example if the file is named
' a.csv
.Trying to escape these edge cases in Python will lead to an imperfect re-implementation of the escaping logic like the original connector.
Ideally, the
run_statement
method should accept a list of substitution parameters like the Python connectormariadb_kernel/mariadb_kernel/mariadb_client.py
Line 50 in 0dddfe5
Listening for the
MariaDB []
prompt causes some queries to never finish or truncate the output.The Python connector will be more reliable as it is both officially supported and throughly tested.
The text was updated successfully, but these errors were encountered: