mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1101: Use "useGeneratedKeys" to get generated keys after insert.
This commit is contained in:
@@ -114,7 +114,8 @@
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!-- Insert single connection -->
|
<!-- Insert single connection -->
|
||||||
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel">
|
<insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID"
|
||||||
|
parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel">
|
||||||
|
|
||||||
INSERT INTO guacamole_connection (
|
INSERT INTO guacamole_connection (
|
||||||
connection_name,
|
connection_name,
|
||||||
@@ -127,10 +128,6 @@
|
|||||||
#{object.protocol,jdbcType=VARCHAR}
|
#{object.protocol,jdbcType=VARCHAR}
|
||||||
)
|
)
|
||||||
|
|
||||||
<selectKey resultType="java.lang.String" keyProperty="objectID" order="AFTER">
|
|
||||||
SELECT LAST_INSERT_ID()
|
|
||||||
</selectKey>
|
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- Update single connection -->
|
<!-- Update single connection -->
|
||||||
|
@@ -107,7 +107,8 @@
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!-- Insert single user -->
|
<!-- Insert single user -->
|
||||||
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserModel">
|
<insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID"
|
||||||
|
parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserModel">
|
||||||
|
|
||||||
INSERT INTO guacamole_user (
|
INSERT INTO guacamole_user (
|
||||||
username,
|
username,
|
||||||
@@ -120,10 +121,6 @@
|
|||||||
#{object.passwordSalt,jdbcType=BINARY}
|
#{object.passwordSalt,jdbcType=BINARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
<selectKey resultType="java.lang.Integer" keyProperty="objectID" order="AFTER">
|
|
||||||
SELECT LAST_INSERT_ID()
|
|
||||||
</selectKey>
|
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- Update single user -->
|
<!-- Update single user -->
|
||||||
|
Reference in New Issue
Block a user