Permalink
Browse files

Merge pull request #3 from joshwilliams/fix_only

Quick fixes in mysqlReScanForeignScan
  • Loading branch information...
2 parents 07e3224 + 7bcf32c commit 707cc23310cdb3c04ee54b996f0a2d9e14d66756 @dpage dpage committed Apr 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 mysql_fdw.c
View
5 mysql_fdw.c
@@ -626,6 +626,9 @@ mysqlReScanForeignScan(ForeignScanState *node)
{
MySQLFdwExecutionState *festate = (MySQLFdwExecutionState *) node->fdw_state;
- mysql_row_seek(festate->result, 0);
+ if (festate->result)
+ {
+ mysql_data_seek(festate->result, 0);
+ }
}

0 comments on commit 707cc23

Please sign in to comment.