Fossil SCM
Fix to the previous fix: install function to the correct database.
Commit
3782276da6a9c5b2e7df4af41e183298b0e44d91
Parent
6f29649ef376afa…
1 file changed
+1
-1
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -510,11 +510,11 @@ | ||
| 510 | 510 | if( zOtherRepo==0 ) return 0; /* No such peer repository */ |
| 511 | 511 | |
| 512 | 512 | rc = sqlite3_open(zOtherRepo, &pOther); |
| 513 | 513 | if( rc==SQLITE_OK ){ |
| 514 | 514 | sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0); |
| 515 | - sqlite3_create_function(g.db, "constant_time_eq", 2, SQLITE_UTF8, 0, | |
| 515 | + sqlite3_create_function(pOther, "constant_time_eq", 2, SQLITE_UTF8, 0, | |
| 516 | 516 | constant_time_eq_function, 0, 0); |
| 517 | 517 | sqlite3_busy_timeout(pOther, 5000); |
| 518 | 518 | zSQL = mprintf( |
| 519 | 519 | "SELECT cexpire FROM user" |
| 520 | 520 | " WHERE login=%Q" |
| 521 | 521 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -510,11 +510,11 @@ | |
| 510 | if( zOtherRepo==0 ) return 0; /* No such peer repository */ |
| 511 | |
| 512 | rc = sqlite3_open(zOtherRepo, &pOther); |
| 513 | if( rc==SQLITE_OK ){ |
| 514 | sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0); |
| 515 | sqlite3_create_function(g.db, "constant_time_eq", 2, SQLITE_UTF8, 0, |
| 516 | constant_time_eq_function, 0, 0); |
| 517 | sqlite3_busy_timeout(pOther, 5000); |
| 518 | zSQL = mprintf( |
| 519 | "SELECT cexpire FROM user" |
| 520 | " WHERE login=%Q" |
| 521 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -510,11 +510,11 @@ | |
| 510 | if( zOtherRepo==0 ) return 0; /* No such peer repository */ |
| 511 | |
| 512 | rc = sqlite3_open(zOtherRepo, &pOther); |
| 513 | if( rc==SQLITE_OK ){ |
| 514 | sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0); |
| 515 | sqlite3_create_function(pOther, "constant_time_eq", 2, SQLITE_UTF8, 0, |
| 516 | constant_time_eq_function, 0, 0); |
| 517 | sqlite3_busy_timeout(pOther, 5000); |
| 518 | zSQL = mprintf( |
| 519 | "SELECT cexpire FROM user" |
| 520 | " WHERE login=%Q" |
| 521 |