From 005bbe7d600adbc78f213931b4d43e02cc3c2e2f Mon Sep 17 00:00:00 2001 From: ysandler Date: Thu, 24 Apr 2025 21:09:52 -0500 Subject: [PATCH] refact: remove DataType from conditional --- q/query.go | 1 - q/select_test.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/q/query.go b/q/query.go index ded018f..27ea0c8 100644 --- a/q/query.go +++ b/q/query.go @@ -25,7 +25,6 @@ type Conditional struct { Key string Operator string Value string - DataType string // TODO: not something we can parse from string, but find a way to determine this later Extension string // AND, OR, etc } diff --git a/q/select_test.go b/q/select_test.go index ee31297..cd20c2f 100644 --- a/q/select_test.go +++ b/q/select_test.go @@ -181,9 +181,6 @@ func TestParseSelectStatement(t *testing.T) { if expectedCondition.Value != answer.Conditionals[i].Value { t.Errorf("got %s for Select.Conditionals[%d].Value, expected %s", answer.Conditionals[i].Value, i, expectedCondition.Value) } - if expectedCondition.DataType != answer.Conditionals[i].DataType { - t.Errorf("got %s for Select.Conditionals[%d].DataType, expected %s", answer.Conditionals[i].DataType, i, expectedCondition.DataType) - } if expectedCondition.Extension != answer.Conditionals[i].Extension { t.Errorf("got %s for Select.Conditionals[%d].Extension, expected %s", answer.Conditionals[i].Extension, i, expectedCondition.Extension) }