Index: trunk/phase3/tests/phpunit/includes/db/DatabaseSqliteTest.php |
— | — | @@ -88,13 +88,13 @@ |
89 | 89 | $db->query( 'CREATE TABLE foo(foo, barfoo)' ); |
90 | 90 | |
91 | 91 | $db->duplicateTableStructure( 'foo', 'bar' ); |
92 | | - $this->assertEquals( 'CREATE TABLE bar(foo, barfoo)', |
| 92 | + $this->assertEquals( 'CREATE TABLE "bar"(foo, barfoo)', |
93 | 93 | $db->selectField( 'sqlite_master', 'sql', array( 'name' => 'bar' ) ), |
94 | 94 | 'Normal table duplication' |
95 | 95 | ); |
96 | 96 | |
97 | 97 | $db->duplicateTableStructure( 'foo', 'baz', true ); |
98 | | - $this->assertEquals( 'CREATE TABLE baz(foo, barfoo)', |
| 98 | + $this->assertEquals( 'CREATE TABLE "baz"(foo, barfoo)', |
99 | 99 | $db->selectField( 'sqlite_temp_master', 'sql', array( 'name' => 'baz' ) ), |
100 | 100 | 'Creation of temporary duplicate' |
101 | 101 | ); |
— | — | @@ -109,16 +109,16 @@ |
110 | 110 | if ( $db->getFulltextSearchModule() != 'FTS3' ) { |
111 | 111 | $this->markTestSkipped( 'FTS3 not supported, cannot create virtual tables' ); |
112 | 112 | } |
113 | | - $db->query( 'CREATE VIRTUAL TABLE foo USING FTS3(foobar)' ); |
| 113 | + $db->query( 'CREATE VIRTUAL TABLE "foo" USING FTS3(foobar)' ); |
114 | 114 | |
115 | 115 | $db->duplicateTableStructure( 'foo', 'bar' ); |
116 | | - $this->assertEquals( 'CREATE VIRTUAL TABLE bar USING FTS3(foobar)', |
| 116 | + $this->assertEquals( 'CREATE VIRTUAL TABLE "bar" USING FTS3(foobar)', |
117 | 117 | $db->selectField( 'sqlite_master', 'sql', array( 'name' => 'bar' ) ), |
118 | 118 | 'Duplication of virtual tables' |
119 | 119 | ); |
120 | 120 | |
121 | 121 | $db->duplicateTableStructure( 'foo', 'baz', true ); |
122 | | - $this->assertEquals( 'CREATE VIRTUAL TABLE baz USING FTS3(foobar)', |
| 122 | + $this->assertEquals( 'CREATE VIRTUAL TABLE "baz" USING FTS3(foobar)', |
123 | 123 | $db->selectField( 'sqlite_master', 'sql', array( 'name' => 'baz' ) ), |
124 | 124 | "Can't create temporary virtual tables, should fall back to non-temporary duplication" |
125 | 125 | ); |
— | — | @@ -132,4 +132,4 @@ |
133 | 133 | $this->fail( $result ); |
134 | 134 | } |
135 | 135 | } |
136 | | -} |
\ No newline at end of file |
| 136 | +} |