I ended up using the following fix
escape_snippet_data
$snippet->code = str_replace( '%', '%%', $snippet->code );
unescape_snippet_data
$snippet->code = str_replace( '%%', '%', $snippet->code );
Function esc_sql() use addslashes or mysql_real_escape_string, nothing more.
Perhaps this could be the cause of this issue?
I ‘m pretty sure, because google maps code contains the percent sign.
If you edit an existing snippet that contains the percent sign and save it, the changes are not saved.
According to function prepare in wp-db.php
* Literals (%) as parts of the query must be properly written as %%.
So, i added the following code in code-snippets.php at public function escape_snippet_data
$snippet->code = str_replace( '%', '%%', $snippet->code );