mariadb/sql/examples
V Narayanan af2e74f8cb Bug#39616: Missing quotes from .CSV crashes server
When a CSV file contained comma separated elements 
that were not enclosed in quotes, it was causing the
mysql server to crash.
      
The old algorithm that parsed the content of a row in
mysql 5.0 was assuming that the values of the fields
in a .CSV file will be enclosed in quotes and will be
separated by commas.

This was causing the old algorithm to fail when the 
content of the file resembled the following
3,"sans quotes"
The CSV engine that is part of mysql 5.0 was expecting
the above to be
"3","sans quotes"
      
The above is just one example of where the engine was
failing for what would be recognized as a valid .CSV 
file content otherwise.
      
The proposed fix changes the old algorithm being used
to parse rows from the .CSV file to handle two separate
cases

1) When the current field of the row is enclosed in quotes
2) When the current field of the row is not enclosed in 
   quotes
2008-11-18 11:31:03 +05:30
..
CMakeLists.txt my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
ha_example.cc BUG#26138 - REPAIR TABLE with option USE_FRM erases all records in 2007-03-30 13:00:21 +05:00
ha_example.h Many files: 2006-12-23 20:17:15 +01:00
ha_tina.cc Bug#39616: Missing quotes from .CSV crashes server 2008-11-18 11:31:03 +05:30
ha_tina.h another valgrind error fix for 4.1(backport from 5.0) 2007-02-02 17:18:42 +04:00