Your message dated Tue, 18 Jan 2022 09:04:17 +0000
with message-id <e1n9kpz-0008z7...@fasolo.debian.org>
and subject line Bug#1003307: fixed in restfuldb 0.15.2+dfsg-3
has caused the Debian Bug report #1003307,
regarding restfuldb: FTBFS with SQLite3 3.37.0+
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1003307: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003307
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: restfuldb
Version: 0.15.2+dfsg-2
Severity: serious
Tags: patch

Hi,

SQLite3 3.37.0 and onwards changed its inner working. Now table column
data types are stored as a value and always returned as uppercase
text. This breaks your package as it relies on the old behavior, when
this was stored as text and returned in a case it was defined.
As I broke it, I've created a fix for you, patch is attached. Couldn't
make it work with older SQLite3 versions thus you will need to build
depend on SQLite3 3.37.0 and newer.

Sorry for the inconvenience,
Laszlo/GCS
Description: SQLite3 3.37.0+ use uppercase column tupe names
 Starting with SQLite3 3.37.0 it stores column type names as a value and
 always displayed in uppercase letters.
 Previously it stored type names as text with the same case as it was given. 
 This breaks testing where the column type is defined in lowercase and
 expects it to be given back as-is.
 Fix this with using type names in uppercase.
Author: Laszlo Boszormenyi (GCS) <g...@debian.org>
Forwarded: no
Last-Update: 2022-01-08

---

--- restfuldb-0.15.2+dfsg.orig/tests/cases/Database.pm_007.sh
+++ restfuldb-0.15.2+dfsg/tests/cases/Database.pm_007.sh
@@ -31,8 +31,8 @@ trap "exit 1" HUP INT QUIT TERM
 
 TMP_DB_MAIN="${TMP_DIR}/test.db"
 
-sqlite3 ${TMP_DB_MAIN} "create table parent(id int, name text)"
-sqlite3 ${TMP_DB_MAIN} "create table child(id int, parent_id int, FOREIGN KEY(parent_id) REFERENCES parent(id))"
+sqlite3 ${TMP_DB_MAIN} "create table parent(id INT, name TEXT)"
+sqlite3 ${TMP_DB_MAIN} "create table child(id INT, parent_id INT, FOREIGN KEY(parent_id) REFERENCES parent(id))"
 sqlite3 ${TMP_DB_MAIN} "insert into parent values (1, 'first entry')"
 sqlite3 ${TMP_DB_MAIN} "insert into parent values (2, 'second entry')"
 sqlite3 ${TMP_DB_MAIN} "insert into child values (1, 1)"
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_001.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_001.out
@@ -1,11 +1,11 @@
 $VAR1 = {
-  'image' => 'blob'
+  'image' => 'BLOB'
 };
 $VAR1 = {
-  'caption' => 'text',
-  'description' => 'text',
-  'id' => 'integer',
-  'image' => 'blob'
+  'caption' => 'TEXT',
+  'description' => 'TEXT',
+  'id' => 'INTEGER',
+  'image' => 'BLOB'
 };
 -----------------
 $VAR1 = {
@@ -13,10 +13,10 @@ $VAR1 = {
   'authors' => 'varchar',
   'cdate' => 'date',
   'ctime' => 'time',
-  'id' => 'integer',
-  'revision_id' => 'integer',
-  'title' => 'text',
-  'year' => 'integer'
+  'id' => 'INTEGER',
+  'revision_id' => 'INTEGER',
+  'title' => 'TEXT',
+  'year' => 'INTEGER'
 };
 $VAR1 = {
   'PublicID' => '12',
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_007.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_007.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'parent_id' => {
@@ -29,14 +29,14 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 1
             },
             'name' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'first entry'
             }
           },
@@ -66,7 +66,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       }
     },
@@ -89,7 +89,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'parent_id' => {
@@ -109,7 +109,7 @@ $VAR1 = [
         }, 'Database::ForeignKey' ),
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 2
       }
     },
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_012.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_012.out
@@ -12,28 +12,28 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'locality' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'New Caledonia'
       },
       'mine' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'Mea'
       },
       'name' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'Dunite'
       }
     },
@@ -60,7 +60,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'X-ray diffractometer'
             },
             'esu' => {
@@ -74,7 +74,7 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'result' => {
@@ -112,28 +112,28 @@ $VAR1 = [
                     'coltype' => 'id',
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'integer',
+                    'sqltype' => 'INTEGER',
                     'value' => 1
                   },
                   'locality' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'New Caledonia'
                   },
                   'mine' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Mea'
                   },
                   'name' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Dunite'
                   }
                 },
@@ -166,7 +166,7 @@ $VAR1 = [
               },
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'started' => {
@@ -211,7 +211,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'LIBS'
             },
             'esu' => {
@@ -225,7 +225,7 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 4
             },
             'result' => {
@@ -251,28 +251,28 @@ $VAR1 = [
                     'coltype' => 'id',
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'integer',
+                    'sqltype' => 'INTEGER',
                     'value' => 1
                   },
                   'locality' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'New Caledonia'
                   },
                   'mine' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Mea'
                   },
                   'name' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Dunite'
                   }
                 },
@@ -305,7 +305,7 @@ $VAR1 = [
               },
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'started' => {
@@ -330,7 +330,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'EXAFS'
             },
             'esu' => {
@@ -344,7 +344,7 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 5
             },
             'result' => {
@@ -370,28 +370,28 @@ $VAR1 = [
                     'coltype' => 'id',
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'integer',
+                    'sqltype' => 'INTEGER',
                     'value' => 1
                   },
                   'locality' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'New Caledonia'
                   },
                   'mine' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Mea'
                   },
                   'name' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text',
+                    'sqltype' => 'TEXT',
                     'value' => 'Dunite'
                   }
                 },
@@ -424,7 +424,7 @@ $VAR1 = [
               },
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'started' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_013.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_013.out
@@ -59,7 +59,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -228,7 +228,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -566,7 +566,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -821,7 +821,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -984,7 +984,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1095,7 +1095,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1357,7 +1357,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1696,7 +1696,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -1840,7 +1840,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1951,7 +1951,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2219,7 +2219,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2558,7 +2558,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -2708,7 +2708,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2819,7 +2819,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3087,7 +3087,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3409,7 +3409,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3562,7 +3562,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3673,7 +3673,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3900,7 +3900,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -4029,7 +4029,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -4285,7 +4285,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -4383,7 +4383,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4530,7 +4530,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4647,7 +4647,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4778,7 +4778,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -4918,7 +4918,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5029,7 +5029,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5117,7 +5117,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -5361,7 +5361,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5782,7 +5782,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6058,7 +6058,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6169,7 +6169,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6484,7 +6484,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -6595,7 +6595,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -6868,7 +6868,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -7042,7 +7042,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -7416,7 +7416,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -7684,7 +7684,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -7847,7 +7847,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -7958,7 +7958,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8233,7 +8233,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8585,7 +8585,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -8729,7 +8729,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8840,7 +8840,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9121,7 +9121,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9473,7 +9473,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -9623,7 +9623,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9734,7 +9734,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10015,7 +10015,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10350,7 +10350,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -10503,7 +10503,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10614,7 +10614,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10854,7 +10854,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -10983,7 +10983,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -11252,7 +11252,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -11350,7 +11350,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11497,7 +11497,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11614,7 +11614,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11745,7 +11745,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -11885,7 +11885,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -11996,7 +11996,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -12084,7 +12084,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -12341,7 +12341,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -12775,7 +12775,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13051,7 +13051,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13162,7 +13162,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13477,7 +13477,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -13588,7 +13588,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -13860,7 +13860,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -14233,7 +14233,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -14501,7 +14501,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_014.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_014.out
@@ -64,7 +64,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -238,7 +238,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -612,7 +612,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -880,7 +880,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -1043,7 +1043,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1154,7 +1154,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1429,7 +1429,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1781,7 +1781,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -1925,7 +1925,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2036,7 +2036,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2317,7 +2317,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2669,7 +2669,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -2819,7 +2819,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2930,7 +2930,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3211,7 +3211,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3546,7 +3546,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3699,7 +3699,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3810,7 +3810,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -4050,7 +4050,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -4179,7 +4179,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -4448,7 +4448,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -4546,7 +4546,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4693,7 +4693,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4810,7 +4810,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4941,7 +4941,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -5081,7 +5081,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5192,7 +5192,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5280,7 +5280,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -5537,7 +5537,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5971,7 +5971,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6247,7 +6247,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6358,7 +6358,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6673,7 +6673,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -6784,7 +6784,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_015.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_015.out
@@ -12,21 +12,21 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 5
       },
       'title' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'The tale of nine tails'
       },
       'year' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1505
       }
     },
@@ -56,21 +56,21 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 6
       },
       'title' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'The tale of nine tails'
       },
       'year' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1505
       }
     },
@@ -97,21 +97,21 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 5
       },
       'title' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'The tale of nine tails'
       },
       'year' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1505
       }
     },
@@ -154,21 +154,21 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 6
       },
       'title' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'The tale of nine tails'
       },
       'year' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1505
       }
     },
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_016.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_016.out
@@ -65,7 +65,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => undef
             },
             'http_host' => {
@@ -256,7 +256,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -630,7 +630,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -898,7 +898,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -1074,7 +1074,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1426,7 +1426,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -1589,7 +1589,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1941,7 +1941,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -2110,7 +2110,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2445,7 +2445,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -2569,7 +2569,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -2698,7 +2698,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2967,7 +2967,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -3065,7 +3065,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3212,7 +3212,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3329,7 +3329,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3460,7 +3460,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -3607,7 +3607,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -4041,7 +4041,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4317,7 +4317,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4428,7 +4428,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_017.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_017.out
@@ -5,28 +5,28 @@ $VAR1 = [
         'coltype' => 'file',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'blob',
+        'sqltype' => 'BLOB',
         'urlvalue' => '/file/1/file'
       },
       'filename' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'test.csv'
       },
       'id' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'mimetype' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'text/csv'
       }
     },
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_020.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_020.out
@@ -6,7 +6,7 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => undef
       },
       'geo_context' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_024.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_024.out
@@ -97,7 +97,7 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => undef
       },
       'geo_context' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_026.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_026.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => undef
       },
       'geo_context' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_030.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_030.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => undef
       },
       'geo_context' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_043.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_043.out
@@ -5,21 +5,21 @@ $VAR1 = [
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 2
       },
       'b' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 3
       },
       'id' => {
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       }
     },
@@ -44,7 +44,7 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 1
             },
             'parent' => {
@@ -70,21 +70,21 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int',
+                    'sqltype' => 'INT',
                     'value' => 2
                   },
                   'b' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int',
+                    'sqltype' => 'INT',
                     'value' => 3
                   },
                   'id' => {
                     'coltype' => 'id',
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int',
+                    'sqltype' => 'INT',
                     'value' => 1
                   }
                 },
@@ -132,21 +132,21 @@ $VAR1 = [
               },
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 1
             },
             'parent_a' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 2
             },
             'parent_b' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 3
             }
           },
@@ -204,7 +204,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int'
+        'sqltype' => 'INT'
       },
       'parent' => {
         'coltype' => 'fk',
@@ -229,19 +229,19 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int'
+              'sqltype' => 'INT'
             },
             'b' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int'
+              'sqltype' => 'INT'
             },
             'id' => {
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int'
+              'sqltype' => 'INT'
             }
           },
           'metadata' => {
@@ -258,19 +258,19 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int'
+        'sqltype' => 'INT'
       },
       'parent_a' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int'
+        'sqltype' => 'INT'
       },
       'parent_b' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int'
+        'sqltype' => 'INT'
       }
     },
     'metadata' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_044.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_044.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'parent' => {
@@ -31,21 +31,21 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 2
             },
             'b' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 3
             },
             'id' => {
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 1
             }
           },
@@ -93,21 +93,21 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'parent_a' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 2
       },
       'parent_b' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 3
       }
     },
@@ -132,7 +132,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 1
       },
       'parent' => {
@@ -158,21 +158,21 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 5
             },
             'b' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 6
             },
             'id' => {
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'int',
+              'sqltype' => 'INT',
               'value' => 4
             }
           },
@@ -197,7 +197,7 @@ $VAR1 = [
                     'coltype' => 'id',
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int'
+                    'sqltype' => 'INT'
                   },
                   'parent' => {
                     'coltype' => 'fk',
@@ -208,19 +208,19 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'int'
+                          'sqltype' => 'INT'
                         },
                         'b' => {
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'int'
+                          'sqltype' => 'INT'
                         },
                         'id' => {
                           'coltype' => 'id',
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'int'
+                          'sqltype' => 'INT'
                         }
                       },
                       'metadata' => {
@@ -237,19 +237,19 @@ $VAR1 = [
                     },
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int'
+                    'sqltype' => 'INT'
                   },
                   'parent_a' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int'
+                    'sqltype' => 'INT'
                   },
                   'parent_b' => {
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'int'
+                    'sqltype' => 'INT'
                   }
                 },
                 'metadata' => {
@@ -300,21 +300,21 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 4
       },
       'parent_a' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 5
       },
       'parent_b' => {
         'coltype' => undef,
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 6
       }
     },
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_061.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_061.out
@@ -59,7 +59,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -228,7 +228,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -566,7 +566,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -821,7 +821,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -984,7 +984,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1095,7 +1095,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1357,7 +1357,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1696,7 +1696,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -1840,7 +1840,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -1951,7 +1951,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2219,7 +2219,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2558,7 +2558,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -2708,7 +2708,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -2819,7 +2819,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3087,7 +3087,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3409,7 +3409,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -3562,7 +3562,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3673,7 +3673,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -3900,7 +3900,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -4029,7 +4029,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -4285,7 +4285,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -4383,7 +4383,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4530,7 +4530,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4647,7 +4647,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -4778,7 +4778,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -4918,7 +4918,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5029,7 +5029,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5117,7 +5117,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -5361,7 +5361,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -5782,7 +5782,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6058,7 +6058,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6169,7 +6169,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -6484,7 +6484,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -6595,7 +6595,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -6868,7 +6868,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -7042,7 +7042,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -7416,7 +7416,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -7684,7 +7684,7 @@ $VAR1 = [
                                 'coltype' => undef,
                                 'length' => undef,
                                 'resolver' => undef,
-                                'sqltype' => 'text'
+                                'sqltype' => 'TEXT'
                               },
                               'http_host' => {
                                 'coltype' => undef,
@@ -7847,7 +7847,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -7958,7 +7958,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8233,7 +8233,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8585,7 +8585,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -8729,7 +8729,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -8840,7 +8840,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9121,7 +9121,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9473,7 +9473,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -9623,7 +9623,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -9734,7 +9734,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10015,7 +10015,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10350,7 +10350,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -10503,7 +10503,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10614,7 +10614,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -10854,7 +10854,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -10983,7 +10983,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -11252,7 +11252,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -11350,7 +11350,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11497,7 +11497,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11614,7 +11614,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -11745,7 +11745,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'geo_context' => {
                           'coltype' => undef,
@@ -11885,7 +11885,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -11996,7 +11996,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -12084,7 +12084,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'geo_context' => {
               'coltype' => undef,
@@ -12341,7 +12341,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -12775,7 +12775,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13051,7 +13051,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13162,7 +13162,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
@@ -13477,7 +13477,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -13588,7 +13588,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -13860,7 +13860,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -14233,7 +14233,7 @@ $VAR1 = [
                     'coltype' => undef,
                     'length' => undef,
                     'resolver' => undef,
-                    'sqltype' => 'text'
+                    'sqltype' => 'TEXT'
                   },
                   'http_host' => {
                     'coltype' => undef,
@@ -14501,7 +14501,7 @@ $VAR1 = [
                           'coltype' => undef,
                           'length' => undef,
                           'resolver' => undef,
-                          'sqltype' => 'text'
+                          'sqltype' => 'TEXT'
                         },
                         'http_host' => {
                           'coltype' => undef,
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_065.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_065.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => 'text',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'X-ray diffractometer'
       },
       'esu' => {
@@ -19,7 +19,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'result' => {
@@ -57,28 +57,28 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'locality' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'New Caledonia'
             },
             'mine' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'Mea'
             },
             'name' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'Dunite'
             }
           },
@@ -111,7 +111,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'started' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_066.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_066.out
@@ -5,7 +5,7 @@ $VAR1 = [
         'coltype' => 'text',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'text',
+        'sqltype' => 'TEXT',
         'value' => 'Confidential. Please get authorisation to get full data.'
       },
       'esu' => {
@@ -19,7 +19,7 @@ $VAR1 = [
         'coltype' => 'id',
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'result' => {
@@ -57,28 +57,28 @@ $VAR1 = [
               'coltype' => 'id',
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'integer',
+              'sqltype' => 'INTEGER',
               'value' => 1
             },
             'locality' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'New Caledonia'
             },
             'mine' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'Mea'
             },
             'name' => {
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => 'Dunite'
             }
           },
@@ -111,7 +111,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'started' => {
--- restfuldb-0.15.2+dfsg.orig/tests/outputs/Database.pm_070.out
+++ restfuldb-0.15.2+dfsg/tests/outputs/Database.pm_070.out
@@ -6,7 +6,7 @@ $VAR1 = [
         'length' => undef,
         'mandatory' => 1,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'primary_sample_id' => {
@@ -121,7 +121,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 1
       },
       'related_sample_id' => {
@@ -224,7 +224,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer',
+        'sqltype' => 'INTEGER',
         'value' => 2
       },
       'revision_id' => {
@@ -255,7 +255,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text',
+              'sqltype' => 'TEXT',
               'value' => undef
             },
             'http_host' => {
@@ -360,7 +360,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int',
+        'sqltype' => 'INT',
         'value' => 3
       },
       'uuid' => {
@@ -407,7 +407,7 @@ $VAR1 = [
         'length' => undef,
         'mandatory' => 1,
         'resolver' => undef,
-        'sqltype' => 'integer'
+        'sqltype' => 'INTEGER'
       },
       'primary_sample_id' => {
         'coltype' => 'fk',
@@ -477,7 +477,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer'
+        'sqltype' => 'INTEGER'
       },
       'related_sample_id' => {
         'coltype' => 'fk',
@@ -547,7 +547,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'integer'
+        'sqltype' => 'INTEGER'
       },
       'revision_id' => {
         'coltype' => 'dbrev',
@@ -564,7 +564,7 @@ $VAR1 = [
               'coltype' => undef,
               'length' => undef,
               'resolver' => undef,
-              'sqltype' => 'text'
+              'sqltype' => 'TEXT'
             },
             'http_host' => {
               'coltype' => undef,
@@ -646,7 +646,7 @@ $VAR1 = [
         },
         'length' => undef,
         'resolver' => undef,
-        'sqltype' => 'int'
+        'sqltype' => 'INT'
       },
       'uuid' => {
         'coltype' => 'uuid',

--- End Message ---
--- Begin Message ---
Source: restfuldb
Source-Version: 0.15.2+dfsg-3
Done: Andrius Merkys <mer...@debian.org>

We believe that the bug you reported is fixed in the latest version of
restfuldb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1003...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrius Merkys <mer...@debian.org> (supplier of updated restfuldb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 18 Jan 2022 03:40:53 -0500
Source: restfuldb
Architecture: source
Version: 0.15.2+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Andrius Merkys <mer...@debian.org>
Changed-By: Andrius Merkys <mer...@debian.org>
Closes: 1003307
Changes:
 restfuldb (0.15.2+dfsg-3) unstable; urgency=medium
 .
   * Simplifying debian/watch.
   * Restoring compatibility with SQLite3 3.37.0 (Closes: #1003307).
   * Removing unused lintian override, false-positive in lintian << 2.105.0.
   * Marking all patches 'Forwarded: not-needed'.
   * Adjusting lintian override for web-application-works-only-with-apache.
   * Bumping copyright years.
Checksums-Sha1:
 4b9e13e191ed990c91805d41edd4b5739741e73d 3072 restfuldb_0.15.2+dfsg-3.dsc
 7f9222c880bf817610db8fb713bcc6935607bba5 25140 
restfuldb_0.15.2+dfsg-3.debian.tar.xz
 108466938080c73df45648b695b45154aed7a2da 11709 
restfuldb_0.15.2+dfsg-3_source.buildinfo
Checksums-Sha256:
 3a8ac842f8bd38f708934becdae4972b7d4ddd2e46a9ec1e642d583009f597eb 3072 
restfuldb_0.15.2+dfsg-3.dsc
 2ff0bf069adcf0d630cbbc0243309a8f239f514b548e6d497d3a08a3b3e02f9c 25140 
restfuldb_0.15.2+dfsg-3.debian.tar.xz
 39dc7a9a6c8be735997cd8c0b00b4763229a8a6d5606992f62efff410ba5a17a 11709 
restfuldb_0.15.2+dfsg-3_source.buildinfo
Files:
 cc604c6303118755cbc9357e4a53a705 3072 web optional restfuldb_0.15.2+dfsg-3.dsc
 d517fe3bfeb4a9498b960de609c1ab37 25140 web optional 
restfuldb_0.15.2+dfsg-3.debian.tar.xz
 439415baff99dd0507afdd81960ac977 11709 web optional 
restfuldb_0.15.2+dfsg-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEdyKS9veshfrgQdQe5fQ/nCc08ocFAmHmfn8SHG1lcmt5c0Bk
ZWJpYW4ub3JnAAoJEOX0P5wnNPKHL90P/ik+rIqZKFgDEc/LnF9jYcuQM24f8XUu
4VdSXpc1/l2iBrKSDmcSmw+p6BA5z4qR4Jp567y2+SRUmyNp9iuH10vAUD3XD9Rj
KQUhZzBBQJqVcCmM15jmAzEyuX497SkoqEtG4d2fYrVgFpW2UFriJ1hnVXO/NNAx
UXARdCAhw8R93oXt0x7Ntlo36WwajaL8pSWx29U5LZ8CrPfcy6coooKwwgiXLaIG
qVkoy97Jbh5jxrBg4PlXyAIFI7ntq+q0+iTjo8qf65mJCzcepB4qFOkEcu81vArh
xcvuea+IBJa6btmdO2Qh+RYn3C7ZZVY27nvN4eKEbHDbaq6L31BW4T9cFDFBM6LH
JPpMzB9B0HgXMbvYELKuyParNkW+4vK+Ow8B8d8gtedyMRi2d7QowVwfiQQ81OJK
WCsaXIwHUr9BiGNuxZ7CnrZ44WcKgs5uuPooOpYY6QyWmZJaaZoUY23386JcAEQU
Xey9Y3cMK08mI5CeL9P4hy0XjMDjG/GeAX9ZG0S5X6c8C1m863SBjX7Sgl87oxX7
AA7fThL4QuX5RhetXCvL0LztPxze7aLcpg65OnexWHpC1iOJEIqcnXXp2Sm2PQCE
ZNJYJ0DJSV6VCxpADssz8rtHdjJuQrrHZi7ekEFFLRAfYu9Td/fIA7g8hqlYSqbZ
p730ZD/wpezs
=YxlF
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to