[GitHub] guacamole-client pull request #264: GUACAMOLE-525: Fix issues with SQL Serve...
Github user asfgit closed the pull request at: https://github.com/apache/guacamole-client/pull/264 ---
[GitHub] guacamole-client pull request #264: GUACAMOLE-525: Fix issues with SQL Serve...
Github user necouchman commented on a diff in the pull request: https://github.com/apache/guacamole-client/pull/264#discussion_r174318995 --- Diff: extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/src/main/resources/org/apache/guacamole/auth/jdbc/user/PasswordRecordMapper.xml --- @@ -66,12 +65,11 @@ ); DELETE FROM [guacamole_user_password_history] -WHERE password_history_id IN ( -SELECT password_history_id +WHERE password_history_id NOT IN ( --- End diff -- > I think I see what you're trying to do here now. Maybe needs an AND user_id = #{record.userID,jdbcType=INTEGER} at the level of the outer select? Yep! Commit coming right up... ---
[GitHub] guacamole-client pull request #264: GUACAMOLE-525: Fix issues with SQL Serve...
Github user mike-jumper commented on a diff in the pull request: https://github.com/apache/guacamole-client/pull/264#discussion_r174302432 --- Diff: extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/src/main/resources/org/apache/guacamole/auth/jdbc/user/PasswordRecordMapper.xml --- @@ -66,12 +65,11 @@ ); DELETE FROM [guacamole_user_password_history] -WHERE password_history_id IN ( -SELECT password_history_id +WHERE password_history_id NOT IN ( --- End diff -- I think I see what you're trying to do here now. Maybe needs an `AND user_id = #{record.userID,jdbcType=INTEGER}` at the level of the outer select? ---
[GitHub] guacamole-client pull request #264: GUACAMOLE-525: Fix issues with SQL Serve...
Github user mike-jumper commented on a diff in the pull request: https://github.com/apache/guacamole-client/pull/264#discussion_r174300331 --- Diff: extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/src/main/resources/org/apache/guacamole/auth/jdbc/user/PasswordRecordMapper.xml --- @@ -66,12 +65,11 @@ ); DELETE FROM [guacamole_user_password_history] -WHERE password_history_id IN ( -SELECT password_history_id +WHERE password_history_id NOT IN ( --- End diff -- Won't this now delete password history for all other users? ---
[GitHub] guacamole-client pull request #264: GUACAMOLE-525: Fix issues with SQL Serve...
GitHub user necouchman opened a pull request: https://github.com/apache/guacamole-client/pull/264 GUACAMOLE-525: Fix issues with SQL Server compatibility Fixes a couple of issues reported with SQL Server compatibility and the lack of support for the LIMIT keyword. You can merge this pull request into a Git repository by running: $ git pull https://github.com/necouchman/guacamole-client jira/525 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/guacamole-client/pull/264.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #264 commit cb580c4ae99fb8ff21618d9117aee9f22bf6e3ff Author: Nick CouchmanDate: 2018-03-13T21:47:35Z GUACAMOLE-525: Remove LIMIT and use TOP in SQL Server module. commit 62a706896ae7cd788337128a4cbc95db763ada9d Author: Nick Couchman Date: 2018-03-13T21:58:54Z GUACAMOLE-525: Fix up password history delete to be more compatible. ---