It's the difference between:
catch { mapping(string:int) tst_opt = (["connect_options":2]); dbconn = Sql.Sql( QUERY(db_string)); }; (doesn't work)
and
catch { mapping(string:int) tst_opt = (["variables":2]); dbconn = Sql.Sql( QUERY(db_string)); }; ('works')
Johan Sundström (Achtung Liebe!) @ Pike (-) developers forum wrote:
catch { mapping(string:int) tst_opt = (["connect_options":2]); dbconn = Sql.Sql( QUERY(db_string)); };
If that block and this block:
catch { dbconn = Sql.Sql( QUERY(db_string)); };
behave differently, it sounds as the Pike version you use might be a bit trigger happy about optimizing away stuff "without side effects". Only grubba can tell. ;-)
__________________________________________________________ Deze e-mail en de inhoud is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n). Indien u niet de geadresseerde bent van deze e-mail verzoeken wij u dit direct door te geven aan de verzender door middel van een reply e-mail en de ontvangen e-mail uit uw systemen te verwijderen. Als u geen geadresseerde bent, is het niet toegestaan om kennis te nemen van de inhoud, deze te kopieren, te verspreiden, bekend te maken aan derden noch anderszins te gebruiken.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please notify us immediately if you have received it in error by reply e-mail and then delete this message from your system. __________________________________________________________