# Bizarre import issue -- Mysql query returning PG::Result?

**URL:** <https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852>\
**Category:** Development\
**Created:** [26 באוגוסט,‏ 2019,‏ 5:51pm UTC](https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852 "2019-08-26T17:51:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [28 באוגוסט,‏ 2019,‏ 9:36pm UTC](https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852/3 "2019-08-28T21:36:27Z")

</div>

> [@gerhard](#):
>
> That call reconnects to Postgres and returns the `PG::Result` object you are seeing.

Aha! So maybe my code that’s supposed to be catching mysql errors and retrying is to blame. I thought that code had worked previously. And I still seem to forget that a function returns the value of the last line that executes.

Thanks a million, @gerhard. It’ll be at least 15 minutes before I see what’s going to happen next, but at least I now understand where the PG return was coming from!

---

_[View the full topic](https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852)._
