Skip to content

Converting boolean when inserting into int #202

Closed
@MakarMS

Description

@MakarMS

When inserting, a problem was found that if you pass a boolean as a value, this value is converted to int and clickhouse cannot handle this case because boolean is expected as input data, not int.

This is due to implode in StrictQuoteLine.php in the quoteRow method, which convert boolean to int.

     * @param $row
     * @param bool $skipEncode
     * @return string
     */
    public function quoteRow($row,bool $skipEncode=false )
    {
        return implode($this->settings['Delimiter'], $this->quoteValue($row,$skipEncode));
    }

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