#1104 Shortcut ctrl+enter executes query twice

3.4.0
open
nobody
mysql (3)
5
2014-07-25
2013-10-21
Gisle
No

Whenever I execute a mysql query using ctrl+enter it starts running twice. It's the same whether it's INSERT, UPDATE, SELECT etc. If I run it from the menu it executes only once, as expected.

Please let me know if I can provide you with any additional information.

Version 3.5.0 on Mac OSX.

1 Attachments

Discussion

  • Leo Bayer

    Leo Bayer - 2013-11-19

    I'm seeing the same problem but using PostgreSQL. All queries run with ctrl-enter are run twice, but if you click the 'Run SQL' button it works correctly and only runs once.

    I've tried this on two separate macbooks, and it seems to only happen on one of them. I can't spot any likely difference between the two machines. Both are Squirrel 3.5.0 using the same version of PostgreSQL and the same version of the driver. The only obvious difference is that the one with the problem is a 2013 macbook pro, and the one that works is a 2010 macbook pro (both running OS X 10.9, 'Mavericks').

     
  • Anders

    Anders - 2013-11-26

    Same problem with double query execution on Ctrl-Enter. PostgreSQL and a Macbook Pro Late 2011, OSX Mavericks. SquirrelSQL 3.5.0.

    Also, when navigating between query result tabs with Ctrl-Shift-, or Ctrl-Shift-. (comma/dot) it jumps two tabs.

     
  • Brock Heinz

    Brock Heinz - 2013-12-11

    To get around this issue, I edited the shell script to comment out the Native 'laf' setting on the mac:

    /Applications/SQuirreLSQL.app/Contents/MacOS/squirrel-sql.sh

    if $macosx ; then
    # Define mac-specific system properties if running on Mac OS X
    ...
    #NATIVE_LAF_PROP="--native-laf"
    fi

     
  • Gisle

    Gisle - 2013-12-13

    Thanks for the workaround, Brock, it seems to work. I do however like the native feel I'm losing out on by using this hack, so if someone has a cleaner solution it would be much appreciated.

    Thanks!

     
  • Anonymous - 2014-01-10

    in my case "Ctrl+Enter" does nothing at all..., nor the "run" button....

     
  • mazi

    mazi - 2014-02-24

    Same problem here. The workaround worked for me.

     
  • Greg Clarke

    Greg Clarke - 2014-03-11

    Same problem here and I agree with @Gisle re the workaround.
    OSX 10.9.2
    SQuirreL SQL 3.5.1

     
    Last edit: Greg Clarke 2014-03-11
  • chipiik

    chipiik - 2014-03-17

    The UI is much more ugly without nativ laf, but it works.
    Thanks.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks