We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
LOCAL INFILE
Is your feature request related to a problem? Please describe.
Currently, we have Capability.LOCAL_FILES marked as disabled, and it is not actually supported. The statement like following:
Capability.LOCAL_FILES
LOAD DATA LOCAL INFILE '/path/to/file' INTO TABLE `my_table`;
After executing this statement (without error), the database server will immediately request the file content from the driver.
Note: MySQL 8.0+ has @@global.local_infiles disabled for security reasons, so this feature should be disabled by default.
@@global.local_infiles
Describe the solution you'd like
LocalInfileRequest
message.server
0xFB
LocalInfileResponse
message.client
QueryFlow
Additional context
See also MySQL and MariaDB docs
It is only supported in text protocol queries.
Reference from: mirromutth/r2dbc-mysql#110
The text was updated successfully, but these errors were encountered:
mirromutth
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Currently, we have
Capability.LOCAL_FILES
marked as disabled, and it is not actually supported. The statement like following:After executing this statement (without error), the database server will immediately request the file content from the driver.
Note: MySQL 8.0+ has
@@global.local_infiles
disabled for security reasons, so this feature should be disabled by default.Describe the solution you'd like
LocalInfileRequest
to packagemessage.server
, the header is0xFB
LocalInfileResponse
to packagemessage.client
, each such message contains a file chunk or an empty chunk (means End-Of-File)LOCAL INFILE
support in message decoderLOCAL INFILE
support inQueryFlow
, which should send file chunks and an empty chunk after receivingLocalInfileRequest
Additional context
See also MySQL and MariaDB docs
It is only supported in text protocol queries.
Reference from: mirromutth/r2dbc-mysql#110
The text was updated successfully, but these errors were encountered: