Closed GoogleCodeExporter closed 9 years ago
[ec2-user@ip-10-245-67-14 consumer]$ svn diff
Index: include/flexcdc.php
===================================================================
--- include/flexcdc.php (revision 236)
+++ include/flexcdc.php (working copy)
@@ -171,10 +171,13 @@
if(!empty($settings['flexcdc']['bulk_insert']) && $settings['flexcdc']['bulk_insert'] != 'false') {
$this->bulk_insert = true;
}
-
+
+ if(empty($D['host']) && !empty($D['socket'])) $D['host'] =
'localhost';
+ if(empty($S['host']) && !empty($S['socket'])) $S['host'] =
'localhost';
+
/*TODO: support unix domain sockets */
- $this->source = mysql_connect($S['host'] . ':' . $S['port'],
$S['user'], $S['password'], true) or die1('Could not connect to MySQL server:'
. mysql_error());
- $this->dest = mysql_connect($D['host'] . ':' . $D['port'],
$D['user'], $D['password'], true) or die1('Could not connect to MySQL server:'
. mysql_error());
+ $this->source = mysql_connect( $S['host'] . ':' .
(!empty($S['socket']) ? $S['socket'] : $S['port']), $S['user'], $S['password'],
true) or die1('Could not connect to MySQL server:' . mysql_error());
+ $this->dest = mysql_connect( $D['host'] . ':' .
(!empty($D['socket']) ? $D['socket'] : $D['port']), $D['user'], $D['password'],
true) or die1('Could not connect to MySQL server:' . mysql_error());
$this->settings = $settings;
Original comment by greenlion@gmail.com
on 12 Jul 2011 at 11:20
This enhancement has been committed to SVN and will be available in the next
release of Flexviews.
Original comment by greenlion@gmail.com
on 12 Jul 2011 at 11:20
Original issue reported on code.google.com by
poorna.s...@gmail.com
on 5 Jul 2011 at 6:15Attachments: