GUAC-1103: Add missing typecase for connection group type.

This commit is contained in:
Michael Jumper
2015-03-06 13:03:41 -08:00
parent db6a9f07a3
commit ee3d8f77c2

View File

@@ -142,7 +142,7 @@
VALUES (
#{object.name,jdbcType=VARCHAR},
#{object.parentIdentifier,jdbcType=INTEGER}::integer,
#{object.type,jdbcType=VARCHAR}
#{object.type,jdbcType=VARCHAR}::guacamole_connection_group_type
)
</insert>
@@ -152,7 +152,7 @@
UPDATE guacamole_connection_group
SET connection_group_name = #{object.name,jdbcType=VARCHAR},
parent_id = #{object.parentIdentifier,jdbcType=INTEGER}::integer,
type = #{object.type,jdbcType=VARCHAR}
type = #{object.type,jdbcType=VARCHAR}::guacamole_connection_group_type
WHERE connection_group_id = #{object.objectID,jdbcType=INTEGER}::integer
</update>