Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the report logic so that @-bindings in the SQL work the same as $- and :-bindings. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
241f1e2a4ff9fa19375153304561c1f5 |
| User & Date: | drh 2017-01-10 13:05:34.964 |
Context
|
2017-01-11
| ||
| 16:36 | Fix obsolete references to the legacy download page. Always refer to the new unversioned-content download page. ... (check-in: a1d7539214 user: drh tags: trunk) | |
|
2017-01-10
| ||
| 19:09 | Merge changes from trunk. ... (check-in: 43fa1ecc73 user: drh tags: remarks-on-checkins) | |
| 13:05 | Fix the report logic so that @-bindings in the SQL work the same as $- and :-bindings. ... (check-in: 241f1e2a4f user: drh tags: trunk) | |
| 05:30 | Add the changes from check-in [3dddf7674b] to the 'makemake.tcl' tool, which is used to generate the Makefiles. ... (check-in: 913058306f user: mistachkin tags: trunk) | |
Changes
Changes to src/report.c.
| ︙ | ︙ | |||
914 915 916 917 918 919 920 |
return SQLITE_ERROR;
}
nVar = sqlite3_bind_parameter_count(pStmt);
for(i=1; i<=nVar; i++){
const char *zVar = sqlite3_bind_parameter_name(pStmt, i);
if( zVar==0 ) continue;
| | | 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 |
return SQLITE_ERROR;
}
nVar = sqlite3_bind_parameter_count(pStmt);
for(i=1; i<=nVar; i++){
const char *zVar = sqlite3_bind_parameter_name(pStmt, i);
if( zVar==0 ) continue;
if( zVar[0]!='$' && zVar[0]!='@' && zVar[0]!=':' ) continue;
if( !fossil_islower(zVar[1]) ) continue;
if( strcmp(zVar, "$login")==0 ){
sqlite3_bind_text(pStmt, i, g.zLogin, -1, SQLITE_TRANSIENT);
}else{
sqlite3_bind_text(pStmt, i, P(zVar+1), -1, SQLITE_TRANSIENT);
}
}
|
| ︙ | ︙ |