Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ on:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: nixpkgs update
run: nix-channel --update
- name: run oracle
run: nix-shell -p docker-compose --run "docker-compose up -d"
- name: build
Expand Down
8 changes: 4 additions & 4 deletions src/Database/Oracle/Simple/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ query conn sql param = do
found <- fetch stmt
loop stmt found
where
loop _ n | n < 1 = do
loop stmt n | n < 1 = do
closeStatement stmt
pure []
loop stmt _ = do
Expand All @@ -46,7 +46,7 @@ query_ conn sql = do
found <- fetch stmt
loop stmt found
where
loop _ n | n < 1 = do
loop stmt n | n < 1 = do
closeStatement stmt
pure []
loop stmt _ = do
Expand All @@ -62,11 +62,11 @@ forEach_ conn sql cont = do
found <- fetch stmt
loop stmt found
where
loop _ n | n < 1 = do
loop stmt n | n < 1 = do
closeStatement stmt
pure ()
loop stmt _ = do
tsVal <- getRow stmt
cont tsVal
found <- fetch stmt
loop stmt found
loop stmt found
Loading