Skip to content

Commit

Permalink
Merge 1ef6317 into c338fdd
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanchezgr committed Feb 16, 2016
2 parents c338fdd + 1ef6317 commit ee46493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/joomla/database/driver.php
Expand Up @@ -380,7 +380,8 @@ public static function splitSql($sql)

if (($current == ';' && !$open) || $i == $end - 1)
{
$queries[] = substr($sql, $start, ($i - $start + 1));
$query = substr($sql, $start, ($i - $start + 1));
$queries[] = preg_replace('/#(?!__)[\s\S]+?[\n\r]/', '', $query);
$start = $i + 1;
}
}
Expand Down

1 comment on commit ee46493

@schultz-it-solutions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola Juan,
I am referring to:
#9251

Do I understand your patch correctly:
It "replaces anything starting with # by "", except if # is followed by __ "
Correct?
If so, this indeed is the cause of my trouble. I have a component, which during installation creates a database table with attributes whose default values are "hex color codes", e.g '#000000' for BLACK.

Please sign in to comment.