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

Probably incorrect array check. #32

Open
sergekiryakov opened this issue Dec 29, 2020 · 1 comment
Open

Probably incorrect array check. #32

sergekiryakov opened this issue Dec 29, 2020 · 1 comment

Comments

@sergekiryakov
Copy link

$this->string .= (strlen($this->array['defaultValue']) == 0) ? '' : " DEFAULT " . $this->array['defaultValue']['expression'] . " ";

strlen() returns params error

@jwn81
Copy link

jwn81 commented Feb 28, 2023

This seems to be a Bug and can be fixed in the line you referenced by correcting the line into this one:
$this->string .= (strlen($this->array['defaultValue']['expression']) == 0) ? '' : " DEFAULT " . $this->array['defaultValue']['expression'] . " ";

The strlen() has to look into the according tree.

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

2 participants