Re: Cannot add reference.

"Markus Hoenicka" <[email protected]> Tue, 5 May 2009 22:31:34 +0200
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Wei-Wei Guo writes:
 > Do you mean patches for refdb-0.9.9-1.tar.gz? I can do that.

Unfortunately I can't reply to the proper message as I didn't receive
your last reply in my inbox. I can see it in the list archives though.

I've checked your log output. I've designed another small patch to
drill a bit deeper. Please apply it in addition to the previous patch
and rebuild RefDB again. The procedure you used last time was
apparently successful.

BTW which type of processor do you use? Is it a non-x86, by any
chance?

regards,
Markus


-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com

_______________________________________________
Refdb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/refdb-users
dbfncs.c.patch (application/octet-stream, 1.2 KB)
Index: dbfncs.c
===================================================================
--- dbfncs.c	(revision 673)
+++ dbfncs.c	(working copy)
@@ -3293,6 +3293,7 @@
   dbi_conn conn;
   unsigned int the_uint;
   unsigned long long the_ulonglong;
+  char buffer[256];
 
   conn = dbi_result_get_conn(dbires);
 
@@ -3300,14 +3301,14 @@
     /* database server does not support long long ints, retrieve as 
        long int instead and cast */
     the_uint = dbi_result_get_uint(dbires, fieldname);
-    /*     sprintf(buffer, "ulong: u %u<< lu %lu<< llu %llu", the_ulong, the_ulong, the_ulong); */
-    /*     LOG_PRINT(LOG_DEBUG, buffer); */
+    sprintf(buffer, "uint: u %u<< lu %lu<< llu %llu", the_uint, the_uint, the_uint);
+    LOG_PRINT(LOG_DEBUG, buffer);
     return (unsigned long long)the_uint;
   }
   else {
     the_ulonglong = dbi_result_get_ulonglong(dbires, fieldname);
-    /*     sprintf(buffer, "ulonglong: u %u<< lu %lu<< llu %llu", the_ulonglong, the_ulonglong, the_ulonglong); */
-    /*     LOG_PRINT(LOG_DEBUG, buffer); */
+    sprintf(buffer, "ulonglong: u %u<< lu %lu<< llu %llu", the_ulonglong, the_ulonglong, the_ulonglong);
+    LOG_PRINT(LOG_DEBUG, buffer);
     return the_ulonglong;
   }
 }