Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with Bool type and with null #1

Open
ArtemYurov opened this issue Nov 29, 2024 · 2 comments
Open

problem with Bool type and with null #1

ArtemYurov opened this issue Nov 29, 2024 · 2 comments

Comments

@ArtemYurov
Copy link

ArtemYurov commented Nov 29, 2024

i create table with:

applicable  Bool,

when i try to do

...::create([
  "applicable" => true,
  ]);

i get error

  ErrorException 

  array_flip(): Can only flip string and integer values, entry skipped

  at vendor/patoui/laravel-clickhouse/src/ClickhouseConnection.php:266

also if i do

...::create([
  "applicable" => 1,
  ]);

i get error

 Exception 

  unsupported column type: Bool
@ArtemYurov ArtemYurov changed the title Error with laravel 11? no problem Nov 29, 2024
@ArtemYurov ArtemYurov changed the title no problem problem with Bool type Nov 29, 2024
@ArtemYurov ArtemYurov reopened this Nov 29, 2024
@ArtemYurov
Copy link
Author

also

state_moysklad_id           UUID            DEFAULT NULL,

"state_id" => null,

get error array_flip(): Can only flip string and integer values, entry skipped

@ArtemYurov ArtemYurov changed the title problem with Bool type problem with Bool type and with null Nov 29, 2024
@ArtemYurov
Copy link
Author

also if do ::where(...)->update(...) where some values is null get error:

 DB::Exception: Syntax error: failed at position 277 (','): , "description" = , 

   at vendor/patoui/laravel-clickhouse/src/ClickhouseConnection.php:133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant