Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Avoid using invalid SQL when checking to see if the vfile table needs to have the islink column added. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | symlinks |
Files: | files | file ages | folders |
SHA1: |
2de9e87600d6a447ee44969410ff5eef |
User & Date: | drh 2011-08-23 16:50:37.505 |
Context
2011-08-23
| ||
17:44 | Fill islink field in vfile table when adding files. Support symlinks in export. Make manifest_file_perm() return 2 for symlinks. Add file_perm() function, and use it instead of file_isexe() when we need both isexe and islink properties. ... (check-in: 4619361d user: dmitry tags: symlinks) | |
16:50 | Avoid using invalid SQL when checking to see if the vfile table needs to have the islink column added. ... (check-in: 2de9e876 user: drh tags: symlinks) | |
15:27 | Merge in the latest changes from trunk. ... (check-in: 6c880a4f user: drh tags: symlinks) | |
Changes
Changes to src/db.c.
︙ | ︙ | |||
755 756 757 758 759 760 761 | db_open_config(0); db_open_repository(0); /* If the "isexe" column is missing from the vfile table, then ** add it now. This code added on 2010-03-06. After all users have ** upgraded, this code can be safely deleted. */ | | | | | | < < < < < | < < < < < < < < < < < < < < < | < < < < < < < < < < < | < < < < < < < | | < | 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 | db_open_config(0); db_open_repository(0); /* If the "isexe" column is missing from the vfile table, then ** add it now. This code added on 2010-03-06. After all users have ** upgraded, this code can be safely deleted. */ rc = db_exists("SELECT 1 FROM %s.sqlite_master" " WHERE name=='vfile' AND sql GLOB '* isexe *'", db_name("localdb")); if( rc==0 ){ db_multi_exec("ALTER TABLE vfile ADD COLUMN isexe BOOLEAN DEFAULT 0"); } /* If the "islink" column is missing from the vfile table, then ** add it now. This code added on 2011-01-17. After all users have ** upgraded, this code can be safely deleted. */ rc = db_exists("SELECT 1 FROM %s.sqlite_master" " WHERE name=='vfile' AND sql GLOB '* islink *'", db_name("localdb")); if( rc==0 ){ db_multi_exec("ALTER TABLE vfile ADD COLUMN islink BOOLEAN DEFAULT 0"); } return 1; } /* ** Locate the root directory of the local repository tree. The root ** directory is found by searching for a file named "_FOSSIL_" or ".fos" |
︙ | ︙ |