sagarswathi / h2database

Automatically exported from code.google.com/p/h2database
0 stars 1 forks source link

error in loading rows from a csv file having \u0001 as the delimiter #421

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Before submitting a bug, please check the FAQ:
http://www.h2database.com/html/faq.html

What steps will reproduce the problem?
(simple SQL scripts or simple standalone applications are preferred)
1.store two columns in a line with delimiter as ctrl-A(\u0001) and save it
12^Asandeep
2.read it from db using 
select * from csvread('test.csv','id,name','charset=UTF-8 fieldDelimiter=^A'); 
where ^A is \u0001 i.e Ctrl-A

3.I am attaching the test.csv file so that the ctrl-A character is well 
understood.

What is the expected output? What do you see instead?

id | name
12 | sandeep
instead i am seeing it as 
id | name
12^A| null
Expected output
What version of the product are you using? On what operating system, file
system, and virtual machine?

Do you know a workaround?

What is your use case, meaning why do you need this feature?

How important/urgent is the problem for you?

Please provide any additional information below.

thanks,
-Sandeep Samudrala

Original issue reported on code.google.com by sandys...@gmail.com on 5 Oct 2012 at 1:02

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

This question is answered at 
http://stackoverflow.com/questions/12779587/issue-with-using-csvread-in-h2-datab
ase-with-unicode-characters-as-delimiter

Regards,
Thomas

Original comment by thomas.t...@gmail.com on 15 Oct 2012 at 7:36