Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Made a cryptic 'not found' error message when failing to resolve a symbolic name slightly less cryptic in response to confusion reported in [forum:1eaa68bb75 | forum post 1eaa68bb75]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
30f669b004de35c6ed24e919325ab4de |
| User & Date: | stephan 2022-06-17 11:04:25.275 |
Context
|
2022-06-18
| ||
| 13:45 | /timeline.rss: updated TITLE fields for wiki entry comment formatting changes. Add explicit forum posts support (they were shown before in some contexts but only by virtue of being 'not a checkin/ticket/wiki' and not honoring the caller's permissions to read them). check-in: cb651568fb user: stephan tags: trunk | |
| 07:04 | Merged in trunk. check-in: 4d62992991 user: stephan tags: markdown-tagrefs | |
|
2022-06-17
| ||
| 11:04 | Made a cryptic 'not found' error message when failing to resolve a symbolic name slightly less cryptic in response to confusion reported in [forum:1eaa68bb75 | forum post 1eaa68bb75]. check-in: 30f669b004 user: stephan tags: trunk | |
|
2022-06-15
| ||
| 17:37 | Update the built-in SQLite to the latest 3.39.0 beta, for testing. check-in: b0f84d8d17 user: drh tags: trunk | |
Changes
Changes to src/name.c.
| ︙ | ︙ | |||
564 565 566 567 568 569 570 |
int name_to_uuid(Blob *pName, int iErrPriority, const char *zType){
char *zName = blob_str(pName);
int rid = symbolic_name_to_rid(zName, zType);
if( rid<0 ){
fossil_error(iErrPriority, "ambiguous name: %s", zName);
return 2;
}else if( rid==0 ){
| | | 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 |
int name_to_uuid(Blob *pName, int iErrPriority, const char *zType){
char *zName = blob_str(pName);
int rid = symbolic_name_to_rid(zName, zType);
if( rid<0 ){
fossil_error(iErrPriority, "ambiguous name: %s", zName);
return 2;
}else if( rid==0 ){
fossil_error(iErrPriority, "cannot resolve name: %s", zName);
return 1;
}else{
blob_reset(pName);
db_blob(pName, "SELECT uuid FROM blob WHERE rid=%d", rid);
return 0;
}
}
|
| ︙ | ︙ | |||
674 675 676 677 678 679 680 |
int rid;
if( zName==0 || zName[0]==0 ) return 0;
rid = symbolic_name_to_rid(zName, zType);
if( rid<0 ){
fossil_fatal("ambiguous name: %s", zName);
}else if( rid==0 ){
| | | 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 |
int rid;
if( zName==0 || zName[0]==0 ) return 0;
rid = symbolic_name_to_rid(zName, zType);
if( rid<0 ){
fossil_fatal("ambiguous name: %s", zName);
}else if( rid==0 ){
fossil_fatal("cannot resolve name: %s", zName);
}
return rid;
}
int name_to_rid(const char *zName){
return name_to_typed_rid(zName, "*");
}
|
| ︙ | ︙ |