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

Dequote the "from" table in a FOREIGN KEY definition (affects the output of "pragma foreign_key_list). Fix for #3800. (CVS 6547)

FossilOrigin-Name: 600482d1619c07690b6517ded9655462bdab7538
This commit is contained in:
danielk1977
2009-04-24 18:06:09 +00:00
parent 336a5300de
commit 70d9e9cc02
4 changed files with 42 additions and 10 deletions

View File

@@ -22,7 +22,7 @@
** COMMIT
** ROLLBACK
**
** $Id: build.c,v 1.530 2009/04/23 13:22:43 drh Exp $
** $Id: build.c,v 1.531 2009/04/24 18:06:09 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -2272,6 +2272,7 @@ void sqlite3CreateForeignKey(
pFKey->zTo = z;
memcpy(z, pTo->z, pTo->n);
z[pTo->n] = 0;
sqlite3Dequote(z);
z += pTo->n+1;
pFKey->pNextTo = 0;
pFKey->nCol = nCol;