From 12d4d8a0b83ee89de2e19cd1e52d7e5c22dbaa48 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 15 Apr 2010 12:23:37 -0700 Subject: [PATCH] set adapter name --- lib/active_record/connection_adapters/mysql2_adapter.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/active_record/connection_adapters/mysql2_adapter.rb b/lib/active_record/connection_adapters/mysql2_adapter.rb index cdc63d7..6e2784d 100644 --- a/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -45,6 +45,11 @@ module ActiveRecord class Mysql2Adapter < MysqlAdapter PRIMARY = "PRIMARY".freeze + ADAPTER_NAME = "Mysql2".freeze + + def adapter_name + ADAPTER_NAME + end # QUOTING ================================================== def quote_string(string)