[gom] gom: Add GDateTime/strv support in automatic migration
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Add GDateTime/strv support in automatic migration
- Date: Thu, 17 Apr 2014 07:25:25 +0000 (UTC)
commit 12b429fb2af0d8bdc197c44d5f777dc7c3d9ab9a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 17 00:54:04 2014 +0200
gom: Add GDateTime/strv support in automatic migration
gom/gom-command-builder.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gom/gom-command-builder.c b/gom/gom-command-builder.c
index 399b32f..12824e2 100644
--- a/gom/gom-command-builder.c
+++ b/gom/gom-command-builder.c
@@ -67,6 +67,9 @@ sql_type_for_column (GParamSpec *pspec)
case G_TYPE_DOUBLE:
return "FLOAT";
default:
+ if (pspec->value_type == G_TYPE_STRV ||
+ pspec->value_type == G_TYPE_DATE_TIME)
+ return "BLOB";
if (g_param_spec_get_qdata(pspec, GOM_RESOURCE_FROM_BYTES_FUNC) != NULL)
return "BLOB";
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]