@@ -1326,42 +1326,48 @@ def test_enotation_decimal(self):
1326
1326
1327
1327
1328
1328
class LikeFunctionsTest (_LikeFunctionsTest ):
1329
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1329
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1330
1330
def test_contains_autoescape (self ):
1331
1331
pass
1332
1332
1333
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1333
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1334
1334
def test_contains_autoescape_escape (self ):
1335
1335
pass
1336
1336
1337
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1337
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1338
1338
def test_contains_escape (self ):
1339
1339
pass
1340
1340
1341
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1341
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1342
1342
def test_endswith_autoescape (self ):
1343
1343
pass
1344
1344
1345
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1345
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1346
1346
def test_endswith_escape (self ):
1347
1347
pass
1348
1348
1349
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1349
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1350
1350
def test_endswith_autoescape_escape (self ):
1351
1351
pass
1352
1352
1353
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1353
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1354
1354
def test_startswith_autoescape (self ):
1355
1355
pass
1356
1356
1357
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1357
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1358
1358
def test_startswith_escape (self ):
1359
1359
pass
1360
1360
1361
- @pytest .mark .skip ("Spanner does not support ESCAPE" )
1361
+ @pytest .mark .skip ("Spanner doesn't support LIKE ESCAPE clause " )
1362
1362
def test_startswith_autoescape_escape (self ):
1363
1363
pass
1364
1364
1365
+ def test_escape_keyword_raises (self ):
1366
+ """Check that ESCAPE keyword causes an exception when used."""
1367
+ with pytest .raises (NotImplementedError ):
1368
+ col = self .tables .some_table .c .data
1369
+ self ._test (col .contains ("b##cde" , escape = "#" ), {7 })
1370
+
1365
1371
1366
1372
@pytest .mark .skip ("Spanner doesn't support quotes in table names." )
1367
1373
class QuotedNameArgumentTest (_QuotedNameArgumentTest ):
0 commit comments