Method: MysqlFramework::SqlCondition#to_s
- Defined in:
- lib/mysql_framework/sql_condition.rb
#to_s ⇒ String
This method is called to get the condition as a string for a sql prepared statement
31 32 33 34 35 |
# File 'lib/mysql_framework/sql_condition.rb', line 31 def to_s return "#{@column} #{@comparison.upcase}" if nil_comparison? "#{@column} #{@comparison} ?" end |