thinking-sphinx-allen 1.3.18 → 1.3.18.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thinking_sphinx/source/sql.rb +1 -1
- metadata +2 -1
@@ -43,7 +43,7 @@ module ThinkingSphinx
|
|
43
43
|
)
|
44
44
|
|
45
45
|
sql = "SELECT #{min_statement}, #{max_statement} " +
|
46
|
-
"FROM #{@model.quoted_table_name} WHERE #{@model.primary_key_for_sphinx} <= (SELECT last_id FROM sph_counter WHERE table_name = '#{@model}')"
|
46
|
+
"FROM #{@model.quoted_table_name} WHERE #{@model.primary_key_for_sphinx} <= (SELECT last_id FROM sph_counter WHERE table_name = '#{@model.table_name}')"
|
47
47
|
else
|
48
48
|
|
49
49
|
|