Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9593
Modified Files:
Tag: Release_0_9_5_stable
refdbdbib.c
Log Message:
fixed unique suffix
Index: refdbdbib.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v
retrieving revision 1.36.2.4
retrieving revision 1.36.2.5
diff -u -U2 -r1.36.2.4 -r1.36.2.5
--- refdbdbib.c 21 Aug 2004 15:45:12 -0000 1.36.2.4
+++ refdbdbib.c 21 Aug 2004 23:02:04 -0000 1.36.2.5
@@ -1457,5 +1457,5 @@
/* select all unique author_abbrevlists */
- sprintf(sql_command, "SELECT DISTINCT author_abbrevlist,pubyear,sorted_pos FROM %s WHERE sorted_pos>0 ORDER BY sorted_pos", table_name);
+ sprintf(sql_command, "SELECT DISTINCT author_abbrevlist,pubyear FROM %s WHERE sorted_pos>0 ORDER BY sorted_pos", table_name);
LOG_PRINT(LOG_DEBUG, sql_command);
dbires1 = dbi_conn_query(ptr_bibconns->conn, sql_command);
@@ -1469,4 +1469,5 @@
}
+ /* loop over all abbrevlists */
while (dbi_result_next_row(dbires1)) {
item = my_dbi_result_get_string_copy(dbires1, "author_abbrevlist");
@@ -1534,5 +1535,5 @@
return 1;
}
-
+/* printf("suffix went to %s<<\n", suffix); */
id_string = my_dbi_result_get_string_copy(dbires2, "entry_id");
if (!id_string || !strcmp(id_string, "ERROR")) {
@@ -2422,8 +2423,4 @@
}
- if ((sql_command = (char*)malloc(strlen(author_concat_q)+256)) == NULL) {
- return -1;
- }
-
if ((author_concat_q = strdup(author_concat)) == NULL || dbi_driver_quote_string(dbi_conn_get_driver(conn), &author_concat_q) == -1) {
return -1;
|