Skip to content

Instantly share code, notes, and snippets.

@jbransen
Created April 3, 2020 17:07
Show Gist options
  • Save jbransen/f6ca8ec02b4a5527fe766ba72cb53048 to your computer and use it in GitHub Desktop.
Save jbransen/f6ca8ec02b4a5527fe766ba72cb53048 to your computer and use it in GitHub Desktop.
ProxySQL bug #2619
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
{-# 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
resolver: lts-14.3
packages:
- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment