# Cannot quit julia REPL when using ODBC

**URL:** <https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760>\
**Category:** New to Julia\
**Created:** [September 7, 2017, 1:52pm UTC](https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760 "2017-09-07T13:52:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonjilla](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Post date:** [September 7, 2017, 1:52pm UTC](https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760/1 "2017-09-07T13:52:27Z")

</div>

I have a strange error. After issuing “using ODBC” and running a command, I’m unable to quit out of the REPL. I use the quit() command and it just hangs forever. I’ve tried it on another linux machine and a completely separate installation and I get the same thing there too.

I haven’t seen this on any other packages that I’m using.

This is on Julia 0.6

Is there something I can do without killing the terminal that’s it’s running or finding and killing the julia process?

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [September 7, 2017, 2:00pm UTC](https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760/2 "2017-09-07T14:00:34Z")

</div>

I’m not having this problem, but my guess is that something bad is happening when it tries to access the ODBC binaries, though I don’t know why it’s hanging instead of throwing an error. Can you confirm the existence of `libodbc.so`?

---

<div class="post-metadata">

**Author:** ![jonjilla](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Post date:** [September 7, 2017, 2:31pm UTC](https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760/3 "2017-09-07T14:31:09Z")

</div>

Actually, I figured out the issue. I see this if I don’t issue the ODBC.disconnect command. I’ve used other SQL packages before and most of those issue an automatic disconnect when quitting the shell, so I didn’t think I needed to do this, but that does seem to resolve the “quit()” issue.

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [September 7, 2017, 3:14pm UTC](https://discourse.julialang.org/t/cannot-quit-julia-repl-when-using-odbc/5760/4 "2017-09-07T15:14:13Z")

</div>

Thanks for posting; I think there’s something we can do in the ODBC.jl package to ensure this always happens. I opened [this issue](https://github.com/JuliaDB/ODBC.jl/issues/172) to track progress.
