SQLite Forum

ESCAPE '%'
Login
> Behavior changed to match PostgreSQL on trunk.

A pedantic micro-optimization:

```
if( escape==pInfo->matchAll || escape==pInfo->matchOne ){
      memcpy(&backupInfo, pInfo, sizeof(backupInfo));
      pInfo = &backupInfo;
      if( escape==pInfo->matchAll ) pInfo->matchAll = 0;
      if( escape==pInfo->matchOne ) pInfo->matchOne = 0;
}
```

*Presumably* `matchAll` and `matchOne` may never be the same character, in which case those adjacent inner `if`'s could be changed to an `if/else if`.