Thread: npgsql - Npgsql2: Reverted search_path patch to original as proposed

npgsql - Npgsql2: Reverted search_path patch to original as proposed

From
fxjr@pgfoundry.org (User Fxjr)
Date:
Log Message:
-----------


Reverted search_path patch to original as proposed by Andrus Moor with an slightly modification to use = instead of TO.
Seehere: http://pgfoundry.org/forum/message.php?msg_id=1002859 for discussion. 

Added check for semicolon (;) in searchpath connection string parameter to prevent from a sql injection attack.

Now, public schema isn't added automatically anymore. User has to add it if she sets search_path in connection string.

Modified Files:
--------------
    Npgsql2/src/Npgsql:
        NpgsqlConnector.cs (r1.11 -> r1.12)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlConnector.cs.diff?r1=1.11&r2=1.12)