Skip to content

FieldA.Eq undefined (type cqlc.BooleanColumn has no field or method Eq) #42

@vidyavnv

Description

@vidyavnv

I am facing this when I am trying to do SELECT using WHERE clause. Any ideas what this is about?

This is my query:

        ctx := cqlc.NewContext()
	iter, err := ctx.Select().
		From(A).
		Where(
			A.X.To(true),
			A.Y.Eq(cityID)).
		Fetch(c.session)

X is a boolean column

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