activewarehouse / activewarehouse-etl

Extract-Transform-Load library from ActiveWarehouse
MIT License
240 stars 102 forks source link

Duplicate LIMIT in DB query when using mysqlstream in ctl and --limit option in cmd line #134

Open acyuta108 opened 11 years ago

acyuta108 commented 11 years ago

Exception: activerecord-3.2.11/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in query': Mysql2::Error: You have an error in your SQL syntax; ... LIMIT 100 LIMIT 1 (ActiveRecord::StatementInvalid) ... activewarehouse-etl-1.0.0/lib/etl/control/source/mysql_streamer.rb:24:ininitialize'

When using mysqlstream in ctl file and command line option --limit.