1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Provide grave accent quoting of identifiers for MySQL compatibility.

Ticket #1337. (CVS 2591)

FossilOrigin-Name: 6b7a4e97528a4e179e0bbae69469cb1a3d1f794b
This commit is contained in:
drh
2005-08-13 18:15:42 +00:00
parent d645967aaa
commit 3d94662a06
5 changed files with 36 additions and 31 deletions

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.141 2005/07/20 14:31:53 drh Exp $
** $Id: util.c,v 1.142 2005/08/13 18:15:43 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -470,7 +470,8 @@ void sqlite3Dequote(char *z){
switch( quote ){
case '\'': break;
case '"': break;
case '[': quote = ']'; break;
case '`': break; /* For MySQL compatibility */
case '[': quote = ']'; break; /* For MS SqlServer compatibility */
default: return;
}
for(i=1, j=0; z[i]; i++){