| | @@ -711,13 +711,10 @@ |
| 711 | 711 | */ |
| 712 | 712 | LOCAL sqlite3 *db_open(const char *zDbName){ |
| 713 | 713 | int rc; |
| 714 | 714 | sqlite3 *db; |
| 715 | 715 | |
| 716 | | -#if defined(__CYGWIN__) |
| 717 | | - zDbName = fossil_utf8_to_filename(zDbName); |
| 718 | | -#endif |
| 719 | 716 | if( g.fSqlTrace ) fossil_trace("-- sqlite3_open: [%s]\n", zDbName); |
| 720 | 717 | rc = sqlite3_open_v2( |
| 721 | 718 | zDbName, &db, |
| 722 | 719 | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, |
| 723 | 720 | g.zVfsName |
| | @@ -867,11 +864,11 @@ |
| 867 | 864 | " WHERE name=='%s' /*scan*/", |
| 868 | 865 | db_name("localdb"), zTable); |
| 869 | 866 | int rc = 0; |
| 870 | 867 | if( zDef ){ |
| 871 | 868 | char *zPattern = mprintf("* %s *", zColumn); |
| 872 | | - rc = strglob(zPattern, zDef)==0; |
| 869 | + rc = sqlite3_strglob(zPattern, zDef)!=0; |
| 873 | 870 | fossil_free(zPattern); |
| 874 | 871 | fossil_free(zDef); |
| 875 | 872 | } |
| 876 | 873 | return rc; |
| 877 | 874 | } |
| | @@ -894,19 +891,19 @@ |
| 894 | 891 | |
| 895 | 892 | /* If the "isexe" column is missing from the vfile table, then |
| 896 | 893 | ** add it now. This code added on 2010-03-06. After all users have |
| 897 | 894 | ** upgraded, this code can be safely deleted. |
| 898 | 895 | */ |
| 899 | | - if( !strglob("* isexe *", zVFileDef) ){ |
| 896 | + if( sqlite3_strglob("* isexe *", zVFileDef)!=0 ){ |
| 900 | 897 | db_multi_exec("ALTER TABLE vfile ADD COLUMN isexe BOOLEAN DEFAULT 0"); |
| 901 | 898 | } |
| 902 | 899 | |
| 903 | 900 | /* If "islink"/"isLink" columns are missing from tables, then |
| 904 | 901 | ** add them now. This code added on 2011-01-17 and 2011-08-27. |
| 905 | 902 | ** After all users have upgraded, this code can be safely deleted. |
| 906 | 903 | */ |
| 907 | | - if( !strglob("* islink *", zVFileDef) ){ |
| 904 | + if( sqlite3_strglob("* islink *", zVFileDef)!=0 ){ |
| 908 | 905 | db_multi_exec("ALTER TABLE vfile ADD COLUMN islink BOOLEAN DEFAULT 0"); |
| 909 | 906 | if( db_local_table_exists_but_lacks_column("stashfile", "isLink") ){ |
| 910 | 907 | db_multi_exec("ALTER TABLE stashfile ADD COLUMN isLink BOOL DEFAULT 0"); |
| 911 | 908 | } |
| 912 | 909 | if( db_local_table_exists_but_lacks_column("undo", "isLink") ){ |
| | @@ -1021,15 +1018,11 @@ |
| 1021 | 1018 | g.json.resultCode = FSL_JSON_E_DB_NOT_VALID; |
| 1022 | 1019 | #endif |
| 1023 | 1020 | fossil_panic("not a valid repository: %s", zDbName); |
| 1024 | 1021 | } |
| 1025 | 1022 | } |
| 1026 | | -#if defined(__CYGWIN__) |
| 1027 | | - g.zRepositoryName = fossil_utf8_to_filename(zDbName); |
| 1028 | | -#else |
| 1029 | 1023 | g.zRepositoryName = mprintf("%s", zDbName); |
| 1030 | | -#endif |
| 1031 | 1024 | db_open_or_attach(g.zRepositoryName, "repository", 0); |
| 1032 | 1025 | g.repositoryOpen = 1; |
| 1033 | 1026 | /* Cache "allow-symlinks" option, because we'll need it on every stat call */ |
| 1034 | 1027 | g.allowSymlinks = db_get_boolean("allow-symlinks", 0); |
| 1035 | 1028 | } |
| 1036 | 1029 | |