Ad
  • Custom User Avatar

    Description: = "=" is missing from orWhere's function arguments.

  • Custom User Avatar

    The interaction between first and take, and multiple calls of take aren't specified. Is first equivalent to take(1)? If multiple calls are done, do we take the last one or throw an error after the first call?

    Similarly, the interaction between selecting a column by string and by object are unknown. It is unclear (and not tested) what should happen if both are mixed together.

  • Custom User Avatar

    In this kata you'll build a simplified version of a query builder that can only handle select statements and that will output the resulting MySQL query.

    Okay, but what is the MySQL syntax for all the things that are tested in the kata? This is not very difficult to describe in the kata, and saves everyone from having to know how to write MySQL queries.

  • Custom User Avatar

    The kata description, sample test cases, and test feedback are severely lacking. In its current state, users may end up wasting time on unnecessary trial and error to get the correct format.

    For example, for test case #5, what is wrong with the following output and what is the correct output?

    SELECT username AS user, password AS pass, first_name FROM posts WHERE cash > 100000 AND username = 'ww' OR first_name = 'walter'

    It also rejects:

    SELECT username AS user, password AS pass, first_name FROM posts WHERE (cash > 100000) AND (username = 'ww') OR (first_name = 'walter')

    The message for this failed test doesn't help: Should handle multiple wheres correctly, escaping string values, handling different operators and OR conditions