From 8ed0042b67f2d95b4eeceec023e295df45af0090 Mon Sep 17 00:00:00 2001 From: rbock Date: Mon, 14 Jul 2014 18:17:53 +0200 Subject: [PATCH] Added blob (currently synonym of text) --- include/sqlpp11/text.h | 1 + scripts/ddl2cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/sqlpp11/text.h b/include/sqlpp11/text.h index 6cce5aea..9fff0b77 100644 --- a/include/sqlpp11/text.h +++ b/include/sqlpp11/text.h @@ -216,6 +216,7 @@ namespace sqlpp } using text = detail::text; + using blob = detail::text; using varchar = detail::text; using char_ = detail::text; diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 13011825..e65cf233 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -93,6 +93,10 @@ types = { 'char': 'char_', 'varchar': 'varchar', 'text': 'text', + 'tinyblob': 'blob', + 'blob': 'blob', + 'mediumblob': 'blob', + 'longblob': 'blob', 'bool': 'boolean', 'double': 'floating_point', 'float': 'floating_point',