cycle / database

Database Abstraction Layer, Schema Introspection, Schema Generation, Query Builders
MIT License
54 stars 22 forks source link

Issue with where('ball', '<', 'water')🐛 #62

Closed sjaakp closed 2 years ago

sjaakp commented 2 years ago

No duplicates 🥲.

Database

MySQL

What happened?

When I put a where-statement like where('ball', '<', 'water'), I'm being presented with an error like:

Type: TypeError Code: 0 Message: strtoupper(): Argument #1 ($string) must be of type string, int given File: D:\websites\slim.local\vendor\cycle\database\src\Query\Traits\TokenTrait.php Line: 171

I have the impression it has something to do with the operator value of '<'. But that isn't an int, is it?

Obviously I didn't expect an error. Or am I doing something wrong?

Version

database 2.0
PHP 8.1
sjaakp commented 2 years ago

Sorry, I found my mistake. I wrapped where's arguments in an array... Stupid me.

roxblnfk commented 2 years ago

In any case, thanks for the activity :)