Column names containing [ cause problems
Issue #123
resolved
Originally reported on Google Code with ID 123
Tested: Current version from SVN (Revision #239).
What steps will reproduce the problem?
1. Create a table using:
CREATE TABLE 'test " ä , 7' ('jgg " ü , 7 [ ''' INTEGER, 'mk8zbn oj' REAL default 'ä''
" ','!"§$%&/()=? }][{ -.,üöä?ß\~*^°&<>µ@€|<' INTEGER)
The [ is the interesting thing here, but this one caused another strange effect.
or simpler:
CREATE TABLE 'test ' ('a' INTEGER, '[' INTEGER )
2. Try to insert values
What is the expected output? What do you see instead?
Expected: Values inserted.
Instead (2nd example):
Notice: Undefined index: 0:[ in phpliteadmin.php on line 2125
Notice: Undefined index: function_0_[ in phpliteadmin.php on line 2130
Problem is that we use the column name for the form-field names and php replaces some
stuff here. Spaces are replaced with underscores _ and the same seems to be the case
for [ and ]. But the first example caused some strange POST-index containing spaces.
I'll need to look this up more closely. This bug report is so I won't forget this example.
Reported by crazy4chrissi
on 2012-10-20 22:46:53
Comments (3)
-
reporter -
reporter - changed version to 1.9.7
- edited description
-
repo owner - changed status to resolved
Fixed issue
#123(Column names containing [ cause problems). Now column-IDs are used as form-field-names instead of the column-names and thus no problems with column names containing [ or any other special character any longer→ <<cset b31ea4c0816e>>
- Log in to comment
Reported by
crazy4chrissi
on 2012-10-30 22:33:10