FIX: symbol param encoder not working (#9)

FIX: symbol param encoder not working (#9)

diff --git a/lib/mini_sql/inline_param_encoder.rb b/lib/mini_sql/inline_param_encoder.rb
index 50b5dd6..78aa862 100644
--- a/lib/mini_sql/inline_param_encoder.rb
+++ b/lib/mini_sql/inline_param_encoder.rb
@@ -62,7 +62,7 @@ module MiniSql
       when BigDecimal then value.to_s("F")
       when Numeric then value.to_s
       when Date, Time then "'#{quoted_date(value)}'"
-      when Symbol     then "'#{escape_string(value.to_s)}'"
+      when Symbol     then "'#{conn.escape_string(value.to_s)}'"
       else raise TypeError, "can't quote #{value.class.name}"
       end
     end
diff --git a/test/mini_sql/inline_param_encoder_test.rb b/test/mini_sql/inline_param_encoder_test.rb
index dd872ea..1f69a4e 100644
--- a/test/mini_sql/inline_param_encoder_test.rb
+++ b/test/mini_sql/inline_param_encoder_test.rb
@@ -18,6 +18,11 @@ module MiniSql
       assert_equal("select 'hello''s'", result)
     end
 
+    def test_symbol_encoding
+      result = @encoder.encode("select :str", str: :value)
+      assert_equal("select 'value'", result)
+    end
+
     def test_array_encoding
       result = @encoder.encode("select :str", str: ["a", "a'"])
       assert_equal("select 'a', 'a'''", result)

GitHub sha: b5e4c62c