fmwviormv / sqlite-net

Automatically exported from code.google.com/p/sqlite-net
0 stars 0 forks source link

Changing case in class members triggers ALTER TABLE which fails #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create table with class member 'name' 
2. Change class member name to 'Name'
3. Create table again (rerun assembly)

What is the expected output? What do you see instead?
the table column should be renamed to "Name" I suppose, but I guess this could 
be very hard.  Instead, there is an error when in the ALTER TABLE because it is 
trying to add a new column called "Name" but can't because "name" already 
exists.

What version of the product are you using? On what operating system?

Please provide any additional information below.
Perhaps lowercasing everything ahead of time would do the trick and allow you 
to re-case the class.

Original issue reported on code.google.com by tor...@gmail.com on 16 Dec 2010 at 8:00