Index: trunk/Ohana/src/tools/src/fits_to_mysql.c
===================================================================
--- trunk/Ohana/src/tools/src/fits_to_mysql.c	(revision 39059)
+++ trunk/Ohana/src/tools/src/fits_to_mysql.c	(revision 39060)
@@ -311,5 +311,9 @@
   char output[128]; // I can use a fixed-length buffer since sprintf_double prints no more than 22 bytes;
 
-  int Nbyte = sprintf_double (output, value);
+  output[0] = 0x27;
+  int Nbyte = sprintf_double (&output[1], value);
+  output[Nbyte+1] = 0x27; // 'asdf' : 012345
+  output[Nbyte+2] = 0;
+  Nbyte += 2;
 
   if (buffer[0].Nbuffer + Nbyte + 1 >= buffer[0].Nalloc) {
@@ -319,5 +323,5 @@
 
   strcpy (&buffer[0].buffer[buffer[0].Nbuffer], output);
-  buffer[0].Nbuffer += Nbyte;
+  buffer[0].Nbuffer += Nbyte; // buffer[Nbuffer] is the EOL null byte
 
   return (TRUE);
@@ -331,5 +335,9 @@
   char output[128]; // I can use a fixed-length buffer since sprintf_float prints no more than 14 bytes;
 
-  int Nbyte = sprintf_float (output, value);
+  output[0] = 0x27;
+  int Nbyte = sprintf_float (&output[1], value);
+  output[Nbyte+1] = 0x27; // 'asdf' : 012345
+  output[Nbyte+2] = 0;
+  Nbyte += 2;
 
   if (buffer[0].Nbuffer + Nbyte + 1 >= buffer[0].Nalloc) {
@@ -339,5 +347,5 @@
 
   strcpy (&buffer[0].buffer[buffer[0].Nbuffer], output);
-  buffer[0].Nbuffer += Nbyte;
+  buffer[0].Nbuffer += Nbyte; // buffer[Nbuffer] is the EOL null byte
 
   return (TRUE);
