mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-462: Generate consistent history record UUIDs based on database record IDs.
This commit is contained in:
		| @@ -25,6 +25,7 @@ | ||||
|  | ||||
|     <!-- Result mapper for system permissions --> | ||||
|     <resultMap id="ConnectionRecordResultMap" type="org.apache.guacamole.auth.jdbc.connection.ConnectionRecordModel"> | ||||
|         <id     column="history_id"           property="recordID"                 jdbcType="INTEGER"/> | ||||
|         <result column="connection_id"        property="connectionIdentifier"     jdbcType="INTEGER"/> | ||||
|         <result column="connection_name"      property="connectionName"           jdbcType="VARCHAR"/> | ||||
|         <result column="remote_host"          property="remoteHost"               jdbcType="VARCHAR"/> | ||||
| @@ -40,6 +41,7 @@ | ||||
|     <select id="select" resultMap="ConnectionRecordResultMap"> | ||||
|  | ||||
|         SELECT | ||||
|             [guacamole_connection_history].history_id, | ||||
|             [guacamole_connection_history].connection_id, | ||||
|             [guacamole_connection_history].connection_name, | ||||
|             [guacamole_connection_history].remote_host, | ||||
| @@ -94,6 +96,7 @@ | ||||
|     <select id="search" resultMap="ConnectionRecordResultMap"> | ||||
|  | ||||
|         SELECT TOP (#{limit,jdbcType=INTEGER}) | ||||
|             [guacamole_connection_history].history_id, | ||||
|             [guacamole_connection_history].connection_id, | ||||
|             [guacamole_connection_history].connection_name, | ||||
|             [guacamole_connection_history].remote_host, | ||||
| @@ -155,6 +158,7 @@ | ||||
|     <select id="searchReadable" resultMap="ConnectionRecordResultMap"> | ||||
|  | ||||
|         SELECT TOP (#{limit,jdbcType=INTEGER}) | ||||
|             [guacamole_connection_history].history_id, | ||||
|             [guacamole_connection_history].connection_id, | ||||
|             [guacamole_connection_history].connection_name, | ||||
|             [guacamole_connection_history].remote_host, | ||||
|   | ||||
| @@ -37,6 +37,7 @@ | ||||
|     <select id="select" resultMap="UserRecordResultMap"> | ||||
|  | ||||
|         SELECT | ||||
|             [guacamole_user_history].history_id, | ||||
|             [guacamole_user_history].remote_host, | ||||
|             [guacamole_user_history].user_id, | ||||
|             [guacamole_user_history].username, | ||||
| @@ -97,6 +98,7 @@ | ||||
|     <select id="search" resultMap="UserRecordResultMap"> | ||||
|  | ||||
|         SELECT TOP (#{limit,jdbcType=INTEGER}) | ||||
|             [guacamole_user_history].history_id, | ||||
|             [guacamole_user_history].remote_host, | ||||
|             [guacamole_user_history].user_id, | ||||
|             [guacamole_user_history].username, | ||||
| @@ -151,6 +153,7 @@ | ||||
|     <select id="searchReadable" resultMap="UserRecordResultMap"> | ||||
|  | ||||
|         SELECT TOP (#{limit,jdbcType=INTEGER}) | ||||
|             [guacamole_user_history].history_id, | ||||
|             [guacamole_user_history].remote_host, | ||||
|             [guacamole_user_history].user_id, | ||||
|             [guacamole_user_history].username, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user