diff options
author | danielk1977 <danielk1977@noemail.net> | 2009-04-24 18:06:09 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2009-04-24 18:06:09 +0000 |
commit | 70d9e9cc02bcd5da5d2f93e23a0b25cb6c310ffb (patch) | |
tree | 2544acdd413d07dbb4daaecd4a2814ed9bab68d4 /src/build.c | |
parent | 336a5300de1a36309eb2a0741e65749c3529b656 (diff) | |
download | sqlite-70d9e9cc02bcd5da5d2f93e23a0b25cb6c310ffb.tar.gz sqlite-70d9e9cc02bcd5da5d2f93e23a0b25cb6c310ffb.zip |
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
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index 73d2f5ca7..77a1f9543 100644 --- a/src/build.c +++ b/src/build.c @@ -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; |