diff options
author | drh <drh@noemail.net> | 2014-03-06 01:56:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-03-06 01:56:33 +0000 |
commit | b6e8fd105c0923bde373188d0251d2440888ac8f (patch) | |
tree | 805bf645ec2a4909bbc673f8c747d27d41114aa2 /src/insert.c | |
parent | 62117159d084cc0c7fdff12ff54209b91da13a42 (diff) | |
download | sqlite-b6e8fd105c0923bde373188d0251d2440888ac8f.tar.gz sqlite-b6e8fd105c0923bde373188d0251d2440888ac8f.zip |
Fix some incorrect comments and typos in comments. Add testcase() macros
to some of the new record comparison code.
FossilOrigin-Name: b83cfe899d84fe9d61540e9984321ca30401638c
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/insert.c b/src/insert.c index 1d29da309..abdf1ada9 100644 --- a/src/insert.c +++ b/src/insert.c @@ -101,13 +101,13 @@ const char *sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx){ ** Compute the affinity string for table pTab, if it has not already been ** computed. As an optimization, omit trailing SQLITE_AFF_NONE affinities. ** -** If the affinity exists (if it is no entirely SQLITE_AFF_NONE values and +** If the affinity exists (if it is no entirely SQLITE_AFF_NONE values) and ** if iReg>0 then code an OP_Affinity opcode that will set the affinities ** for register iReg and following. Or if affinities exists and iReg==0, ** then just set the P4 operand of the previous opcode (which should be ** an OP_MakeRecord) to the affinity string. ** -** A column affinity string has one character column: +** A column affinity string has one character per column: ** ** Character Column affinity ** ------------------------------ @@ -148,10 +148,9 @@ void sqlite3TableAffinity(Vdbe *v, Table *pTab, int iReg){ /* ** Return non-zero if the table pTab in database iDb or any of its indices -** have been opened at any point in the VDBE program beginning at location -** iStartAddr throught the end of the program. This is used to see if +** have been opened at any point in the VDBE program. This is used to see if ** a statement of the form "INSERT INTO <iDb, pTab> SELECT ..." can -** run without using temporary table for the results of the SELECT. +** run without using a temporary table for the results of the SELECT. */ static int readsTable(Parse *p, int iDb, Table *pTab){ Vdbe *v = sqlite3GetVdbe(p); |