Commit 170442dc authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #352 from doctrine/SQLitePlatformQuoteFixes

Fixed PRAGMA calls that were missing quotes for non-standard table names
parents 0fa93b1f dd4b1328
...@@ -369,7 +369,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -369,7 +369,7 @@ class SqlitePlatform extends AbstractPlatform
{ {
$table = str_replace('.', '__', $table); $table = str_replace('.', '__', $table);
return "PRAGMA table_info($table)"; return "PRAGMA table_info('$table')";
} }
/** /**
...@@ -379,7 +379,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -379,7 +379,7 @@ class SqlitePlatform extends AbstractPlatform
{ {
$table = str_replace('.', '__', $table); $table = str_replace('.', '__', $table);
return "PRAGMA index_list($table)"; return "PRAGMA index_list('$table')";
} }
/** /**
...@@ -452,7 +452,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -452,7 +452,7 @@ class SqlitePlatform extends AbstractPlatform
{ {
$tableName = str_replace('.', '__', $tableName); $tableName = str_replace('.', '__', $tableName);
return 'DELETE FROM '.$tableName; return 'DELETE FROM ' . $tableName;
} }
/** /**
...@@ -685,7 +685,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -685,7 +685,7 @@ class SqlitePlatform extends AbstractPlatform
{ {
$table = str_replace('.', '__', $table); $table = str_replace('.', '__', $table);
return "PRAGMA foreign_key_list($table)"; return "PRAGMA foreign_key_list('$table')";
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment