krummas / DrizzleJDBC

A BSD licensed JDBC driver for Drizzle and MySQL
BSD 3-Clause "New" or "Revised" License
31 stars 22 forks source link

Broaden stream support for LOAD DATA LOCAL INFILE #7

Closed WoozyG closed 11 years ago

WoozyG commented 11 years ago

The current implementation in DrizzleStatement and MySQLProtocol explicitly declares the input field (unnecessarily) as FileInputStream when there is no file based logic in the class. We need to wrap our inputs with custom filter stream wrappers to decrypt data on the fly. We need the declared type of the field and related methods to change to InputStream. If I used Maven or Git I'd include a patch, but I don't, and this is a trivial change, just using the proper parent class instead of the too specific subclass.