--- fireruby-trunk/src/TypeMap.c	2010-08-11 12:27:48.263112331 +0300
+++ fireruby/src/TypeMap.c	2010-08-11 12:22:27.995112311 +0300
@@ -216,7 +216,7 @@
 
          case SQL_VARYING :
             memcpy(&length, entry->sqldata, 2);
-            if(length > 0)
+            if(length >= 0)
             {
                array = ALLOC_N(char, length + 1);
                if(array != NULL)
