Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

How to differentiate 'AND' vs 'OR #56

Description

@tai-pd
  • I see json when query : OR, AND in "conds" just a array of condition and separate by sysbol ",",
    So what a signature maked we know that is "AND" or "OR" ?

Activity

  1. CrafterKolyan commented on Feb 6, 2020

    @CrafterKolyan

    Due to

    WikiSQL/lib/query.py

    Lines 46 to 47 in 7080c89

    if self.conditions:
    rep += ' WHERE ' + ' AND '.join(['{} {} {}'.format('col{}'.format(i), self.cond_ops[o], v) for i, o, v in self.conditions])

    it's always "AND"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions