Created
April 3, 2020 17:07
-
-
Save jbransen/f6ca8ec02b4a5527fe766ba72cb53048 to your computer and use it in GitHub Desktop.
ProxySQL bug #2619
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: proxysql-debug | |
version: 0.1.0.0 | |
build-type: Simple | |
cabal-version: >=1.10 | |
executable proxysql-debug | |
main-is: ProxySqlTest.hs | |
other-extensions: OverloadedStrings | |
build-depends: base, mysql-haskell, resource-pool, io-streams | |
default-language: Haskell2010 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Database.MySQL.Base | |
import qualified System.IO.Streams as Streams | |
import Control.Monad | |
main :: IO () | |
main = do | |
replicateM_ 10 $ do | |
conn <- connect defaultConnectInfo {ciUser = "debug", ciPassword = "", ciPort = 6033} | |
replicateM_ 10 $ do | |
(defs, is) <- query_ conn "SELECT 1" | |
print =<< Streams.toList is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resolver: lts-14.3 | |
packages: | |
- . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment