SQLConnection.attach() fails when file path contains apostrophe
Hello,
Any help on this would be much appreciated. Issue occurs when user has apostrophe in their windows username and therefore an apostrophe in their File.applicationStorageDirectory path.
e.g. if the user logs into windows as j.o'reilly, then it will be:
C:\Documents and Settings\j.o'reilly\Application Data\application name\local store
Have tried with Air Runtimes: 2.5.0.16600,2.6.0.19120,3.2.2070
Have tried with Air SDKs: 2.0, 2.7, 4.5
To replicate without creating a windows user with an apostrophe, the same result occurs if the files themselves are named with an apostrophe:
var __connection:SQLConnection;
__connection = new SQLConnection();
__connection.open( File.applicationStorageDirectory.resolvePath("mainfile.s3db"), SQLMode.UPDATE );
__connection.attach( "secondary", File.applicationStorageDirectory.resolvePath("user'name.s3db") );
Result:
SQLError: 'Error #3125: Unable to open the database file.', details:'near 'name': syntax error', operation:'attach', detailID:'2003'
at flash.data::SQLConnection/internalAttach()
