diff -uNr tw/tests/tw_api.test tw_patched/tests/tw_api.test
--- tw/tests/tw_api.test	2009-09-09 12:19:34.000000000 -0700
+++ tw_patched/tests/tw_api.test	2011-03-21 18:13:37.000000000 -0700
@@ -155,7 +155,7 @@
                                    WHERE twtid=%d AND colname='id' AND primarykey=1
                                      AND availablefk=1 AND ignorecol=0 AND isempty=0
                                      AND coltype='serial' AND minlength IS NULL AND maxlength IS NULL
-                                     AND minvalue=1 AND maxvalue=5
+                                     AND minnumvalue=1 AND maxnumvalue=5
                                      AND minstring IS NULL AND maxstring IS NULL AND comments IS NULL",
                                   $twtid));
     $this->assertTrue(isset($idtwcid) && $idtwcid > 0, 'id field added to tw_columns');
@@ -164,7 +164,7 @@
                                    WHERE twtid=%d AND colname='textfield' AND primarykey=0
                                      AND availablefk=0 AND ignorecol=0 AND isempty=0
                                      AND coltype='varchar' AND minlength=10 AND maxlength=11
-                                     AND minvalue IS NULL AND maxvalue IS NULL
+                                     AND minnumvalue IS NULL AND maxnumvalue IS NULL
                                      AND minstring='fifthvalue' AND maxstring='thirdvalue' AND comments IS NULL",
                                   $twtid));
     $this->assertTrue(isset($textfieldtwcid) && $textfieldtwcid > 0, 'textfield field added to tw_columns');
@@ -173,7 +173,7 @@
                                    WHERE twtid=%d AND colname='intfield' AND primarykey=0
                                      AND availablefk=0 AND ignorecol=0 AND isempty=0
                                      AND coltype='int' AND minlength IS NULL AND maxlength IS NULL
-                                     AND minvalue=0 AND maxvalue=53
+                                     AND minnumvalue=0 AND maxnumvalue=53
                                      AND minstring IS NULL AND maxstring IS NULL AND comments IS NULL",
                                   $twtid));
     $this->assertTrue(isset($intfieldtwcid) && $intfieldtwcid > 0, 'intfield field added to tw_columns');
diff -uNr tw/tw.install tw_patched/tw.install
--- tw/tw.install	2009-10-20 17:32:58.000000000 -0700
+++ tw_patched/tw.install	2011-03-21 18:13:07.000000000 -0700
@@ -130,11 +130,11 @@
         'type' => 'int',
         'description' => 'For varchar and text columns, the maximum number of characters found in the table data after analysis.',
       ),
-      'minvalue' => array(
+      'minnumvalue' => array(
         'type' => 'float',
         'description' => 'For numeric columns, the smallest value found in the table data after analysis.',
       ),
-      'maxvalue' => array(
+      'maxnumvalue' => array(
         'type' => 'float',
         'description' => 'For numeric columns, the largest value found in the table data after analysis.',
       ),
diff -uNr tw/tw.module tw_patched/tw.module
--- tw/tw.module	2010-03-20 15:03:21.000000000 -0700
+++ tw_patched/tw.module	2011-03-21 18:14:13.000000000 -0700
@@ -352,10 +352,10 @@
           // Analyze the values in the table
           $sql = 'SELECT MIN(' . tw_quote_identifier($colname) . ')
                   FROM ' . tw_quote_identifier('{' . $tablename . '}');
-          $minvalue = db_result(db_query($sql));
+          $minnumvalue = db_result(db_query($sql));
           $sql = 'SELECT MAX(' . tw_quote_identifier($colname) . ')
                   FROM ' . tw_quote_identifier('{' . $tablename . '}');
-          $maxvalue = db_result(db_query($sql));
+          $maxnumvalue = db_result(db_query($sql));
           if (tw_column_type($coltype) == 'text') {
             $sql = 'SELECT MIN(CHAR_LENGTH(' . tw_quote_identifier($colname) . '))
                     FROM ' . tw_quote_identifier('{' . $tablename . '}');
@@ -377,7 +377,7 @@
             }
           }
           else {
-            if ($minvalue || $maxvalue) {
+            if ($minnumvalue || $maxnumvalue) {
               $isempty = FALSE;
             }
             else {
@@ -410,26 +410,26 @@
           if (isset($maxlength)) {
             $colrecord->maxlength = $maxlength;
           }
-          if (!$minvalue) {
-            $minvalue = '';
+          if (!$minnumvalue) {
+            $minnumvalue = '';
           }
-          $colrecord->minstring = substr($minvalue, 0, 255);
-          if (!$maxvalue) {
-            $maxvalue = '';
+          $colrecord->minstring = substr($minnumvalue, 0, 255);
+          if (!$maxnumvalue) {
+            $maxnumvalue = '';
           }
-          $colrecord->maxstring = substr($maxvalue, 0, 255);
-          unset($colrecord->minvalue);
-          unset($colrecord->maxvalue);
+          $colrecord->maxstring = substr($maxnumvalue, 0, 255);
+          unset($colrecord->minnumvalue);
+          unset($colrecord->maxnumvalue);
         }
         else {
-          if (!isset($minvalue) || !$minvalue) {
-            $minvalue = 0;
+          if (!isset($minnumvalue) || !$minnumvalue) {
+            $minnumvalue = 0;
           }
-          $colrecord->minvalue = $minvalue;
-          if (!isset($maxvalue) || !$maxvalue) {
-            $maxvalue = 0;
+          $colrecord->minnumvalue = $minnumvalue;
+          if (!isset($maxnumvalue) || !$maxnumvalue) {
+            $maxnumvalue = 0;
           }
-          $colrecord->maxvalue = $maxvalue;
+          $colrecord->maxnumvalue = $maxnumvalue;
           unset($colrecord->minlength);
           unset($colrecord->maxlength);
           unset($colrecord->minstring);
diff -uNr tw/tw_pages.inc tw_patched/tw_pages.inc
--- tw/tw_pages.inc	2010-06-28 18:11:07.000000000 -0700
+++ tw_patched/tw_pages.inc	2011-03-21 18:15:06.000000000 -0700
@@ -609,7 +609,7 @@
       else {
         $form['lengths'][$colname] = array('#value' => '');
         $form['values'][$colname] = array('#value' =>
-          $row->maxvalue ? $row->minvalue . '-' . $row->maxvalue : ''
+          $row->maxnumvalue ? $row->minnumvalue . '-' . $row->maxnumvalue : ''
         );
       }
       $form['comments'][$colname] = array(
