[CONJ-986] How to LOAD DATA INFILE since 3.0.0? Created: 2022-06-27 Updated: 2022-08-17 Resolved: 2022-07-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | 2.7 compatibility, documentation |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | 3.0.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | member sound | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Please provide samples how to migrate `MariaDbStatement.setLocalInfileInputStream` from 2.7.5 to 3.x The docs still show the deprecated class: The old way was neat for just loaded CSV data from *memory* without an intermediate file into a database, as follows:
How can the same be achieved since MariaDbStatement was dropped? |
| Comments |
| Comment by Diego Dupin [ 2022-06-27 ] |
|
This functionnality was initially done to avoid a security risk (fake server in the middle), problem that has been solve since. |
| Comment by member sound [ 2022-08-17 ] |
|
Please, if fixed, update the docs (https://github.com/microsoft/mariadb-connector-j/blob/master/documentation/use-mariadb-connector-j-driver.creole#jdbc-api-implementation-notes) how to `LOAD DATA` since 3.0.7. |