Previously the update command aborted if files with duplicate basenames
were found. Suggested by Gerd Becker.
~~~~~~~~
Distribution of paraslash is covered by the GNU GPL. See file COPYING.
~~~~~~~~
Distribution of paraslash is covered by the GNU GPL. See file COPYING.
-LIMITATIONS:
-~~~~~~~~~~~~
-The mysql selector assumes that the basenames of your audio files are
-unique. If this is not the case, don't use this selector, rename your
-files, or create your own one.
-
THE AUTHOR:
~~~~~~~~~~~
Author: Andre Noll <maan@systemlinux.org>
THE AUTHOR:
~~~~~~~~~~~
Author: Andre Noll <maan@systemlinux.org>
+Note that the mysql selector assumes that the basenames of your audio
+files are unique. If this is not the case, duplicates are ignored.
+
If this command fails, it most likely means the audio file directory
(given in the server configuration file) does not exist, is empty,
If this command fails, it most likely means the audio file directory
(given in the server configuration file) does not exist, is empty,
-not readable, or contains different files with identical basenames. Fix
-this problem before proceeding.
+or not readable. Fix this problem before proceeding.
goto out;
if ((ret = real_query("delete from dir")) < 0)
goto out;
goto out;
if ((ret = real_query("delete from dir")) < 0)
goto out;
- query = make_message("load data infile '%s' into table dir "
+ query = make_message("load data infile '%s' ignore into table dir "
"fields terminated by '\t' lines terminated by '\n' "
"(dir, name)", tempname);
ret = real_query(query);
"fields terminated by '\t' lines terminated by '\n' "
"(dir, name)", tempname);
ret = real_query(query);