Skip to content
Browse files

Change 'text' to 'TEXT' in SQL column type def

Dunno if it has consequences for sqlite. But it is improving
consistency.
  • Loading branch information...
1 parent fcb5c2a commit 585ca8d214f5ee1ed5a6bf8bfeca73c888982916 Markus Schirp committed Sep 21, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/python/mongrel2/sql/config.sql
  2. +1 −1 src/config/config.sql
  3. +1 −1 tools/m2sh/src/constants.c
View
2 examples/python/mongrel2/sql/config.sql
@@ -60,7 +60,7 @@ CREATE TABLE setting (id INTEGER PRIMARY KEY, key TEXT, value TEXT);
CREATE TABLE statistic (id SERIAL,
other_type TEXT,
other_id INTEGER,
- name text,
+ name TEXT,
sum REAL,
sumsq REAL,
n INTEGER,
View
2 src/config/config.sql
@@ -61,7 +61,7 @@ CREATE TABLE setting (id INTEGER PRIMARY KEY, key TEXT, value TEXT);
CREATE TABLE statistic (id SERIAL,
other_type TEXT,
other_id INTEGER,
- name text,
+ name TEXT,
sum REAL,
sumsq REAL,
n INTEGER,
View
2 tools/m2sh/src/constants.c
@@ -94,7 +94,7 @@ struct tagbstring CONFIG_SCHEMA = bsStatic(
"CREATE TABLE statistic (id SERIAL, \n"
" other_type TEXT,\n"
" other_id INTEGER,\n"
-" name text,\n"
+" name TEXT,\n"
" sum REAL,\n"
" sumsq REAL,\n"
" n INTEGER,\n"

1 comment on commit 585ca8d

@mbj
Owner
mbj commented on 585ca8d Jan 6, 2012

As you know sqlite3 types have a type "affinity". When there was the "text" (downcase) I had a case this column had some kind of 'unknown or void' affinity. As I changed the definition to the uppercase "TEXT", the behavior was like TEXT affinity as expected. I cannot reproduce this anymore since I forgot the details. This change is 3 month old. Could be some ultra odd and edge case bug / behavior of my past sqlite3 / compiler / etc environment.

Please sign in to comment.
Something went wrong with that request. Please try again.