Fix a bug in the new "pk" column of the table_info pragma that was added
by check-in (1081). (CVS 1082) FossilOrigin-Name: ad7b017a1277c00b356343b36ade565baf404d6a
This commit is contained in:
parent
78100cc928
commit
3ca65151d5
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C Add\sa\s"pk"\scolumn\sto\sthe\stable_info\spragma\swhich\sis\strue\sfor\seach\scolumn\nthat\sis\spart\sof\sthe\sprimary\skey.\s\sAdd\sa\s"foreign_key_list"\spragma\sthat\sgives\ninformation\sabout\sall\sforeign\skeys\sfor\sa\stable.\s\sBoth\schanges\sare\sexperimental.\s(CVS\s1081)
|
||||
D 2003-08-23T22:40:54
|
||||
C Fix\sa\sbug\sin\sthe\snew\s"pk"\scolumn\sof\sthe\stable_info\spragma\sthat\swas\sadded\nby\scheck-in\s(1081).\s(CVS\s1082)
|
||||
D 2003-08-24T16:38:18
|
||||
F Makefile.in 4168f80989c60b195d378bcaa2e2046df03ee2ec
|
||||
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
|
||||
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
|
||||
@ -24,7 +24,7 @@ F src/auth.c c8f50d4507e37779d96ff3c55417bc2b612dfed6
|
||||
F src/btree.c ba1cc0c71c3d2742b9a9047832335dc7d3656c45
|
||||
F src/btree.h 9b7c09f1e64274d7bb74a57bbfc63778f67b1048
|
||||
F src/btree_rb.c f30f5cddc4375c05bf361116da1492d9601760ca
|
||||
F src/build.c 5b379f8b699ecbb3d55f492f0e956b9da40b4a9c
|
||||
F src/build.c 7cdc95266496f53673a66202477b137d514898cf
|
||||
F src/copy.c 9e47975ea96751c658bcf1a0c4f0bb7c6ee61e73
|
||||
F src/delete.c 0f81e6799c089487615d38e042a2de4d2d6192bc
|
||||
F src/encode.c 25ea901a9cefb3d93774afa4a06b57cb58acf544
|
||||
@ -168,7 +168,7 @@ F www/speed.tcl 2f6b1155b99d39adb185f900456d1d592c4832b3
|
||||
F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
|
||||
F www/tclsqlite.tcl b9271d44dcf147a93c98f8ecf28c927307abd6da
|
||||
F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
|
||||
P 0bde7ae2ba57de554c3531f3cb7e36bf56d3b12c
|
||||
R 0a132fc8e8622ab698832e9d81c6e40c
|
||||
P 5232b0665b84a9339a85918570093a376a0ea91f
|
||||
R c88ad12d9940cdc34fadcc75701dbd4d
|
||||
U drh
|
||||
Z bdf4b37b1c1e30ff9a4a67baf9818ee2
|
||||
Z 51b2ace98edd67abd32fb67d9d670276
|
||||
|
@ -1 +1 @@
|
||||
5232b0665b84a9339a85918570093a376a0ea91f
|
||||
ad7b017a1277c00b356343b36ade565baf404d6a
|
@ -23,7 +23,7 @@
|
||||
** ROLLBACK
|
||||
** PRAGMA
|
||||
**
|
||||
** $Id: build.c,v 1.158 2003/08/23 22:40:54 drh Exp $
|
||||
** $Id: build.c,v 1.159 2003/08/24 16:38:18 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@ -717,7 +717,7 @@ void sqliteAddPrimaryKey(Parse *pParse, IdList *pList, int onError){
|
||||
}else{
|
||||
for(i=0; i<pList->nId; i++){
|
||||
for(iCol=0; iCol<pTab->nCol; iCol++){
|
||||
if( sqliteStrICmp(pList->a[0].zName, pTab->aCol[iCol].zName)==0 ) break;
|
||||
if( sqliteStrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ) break;
|
||||
}
|
||||
if( iCol<pTab->nCol ) pTab->aCol[iCol].isPrimKey = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user