|
|
| version 1.78, 2006/06/09 19:03:49 | version 1.79, 2007/04/23 10:30:09 |
|---|---|
| Line 73 public: | Line 73 public: |
| } | } |
| bool before_rows(SQL_Error& error) { | bool before_rows(SQL_Error& error) { |
| if(columns.count()<1) { | if(columns.count()<1) { |
| error=SQL_Error("parser.runtime", "no columns"); | error=SQL_Error(PARSER_RUNTIME, "no columns"); |
| return true; | return true; |
| } | } |
| only_one_column=columns.count()==1; | only_one_column=columns.count()==1; |
| Line 100 public: | Line 100 public: |
| row_hash->put(*columns[column_index], new VString(cell)); | row_hash->put(*columns[column_index], new VString(cell)); |
| if(duplicate & !distinct) { | if(duplicate & !distinct) { |
| error=SQL_Error("parser.runtime", "duplicate key"); | error=SQL_Error(PARSER_RUNTIME, "duplicate key"); |
| return true; | return true; |
| } | } |
| Line 265 static void _sql(Request& r, MethodParam | Line 265 static void _sql(Request& r, MethodParam |
| distinct=r.process_to_value(*vdistinct).as_bool(); | distinct=r.process_to_value(*vdistinct).as_bool(); |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception("parser.runtime", | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| "called with invalid option"); | "called with invalid option"); |
| } else | } else |
| throw Exception("parser.runtime", | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| "options must be hash"); | "options must be hash"); |
| } | } |