Fix table name (again) in DAViCal plugin.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 19 Mar 2013 15:42:09 +0000 (11:42 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 19 Mar 2013 15:42:09 +0000 (11:42 -0400)
lib/mailshears/plugins/davical.rb

index 3f4861c3914e44d201442981fa69bb198f3acf9c..fae30d8f794d3667b835773157ed2b801f5855ed 100644 (file)
@@ -97,7 +97,7 @@ class DavicalDb
                                   @db_user,
                                   @db_pass)
 
-      sql_query = "SELECT principal_id FROM usr WHERE username = $1;"
+      sql_query = "SELECT principal_id FROM principal WHERE username = $1;"
 
       connection.query(sql_query, [account]) do |result|
         if result.num_tuples > 0