Welcome Guest, Not a member yet? Register   Sign In
Type casting in PostgreSQL with updateBatch()
#9

(This post was last modified: 01-03-2024, 12:14 AM by luckmoshy.)

dear @kenjis as mrWhite says it is ok I had such a batch demand one time ago that I postponed and later used my way but right now I need it

PHP Code:
<?php

$data 
= [
    [
        'id:BIGINT'  => 1,
        'data:JSONB' => '{"books":{}}''//json fr array 
    ],
    [
        '
idBIGINT'  => 2,
        '
data:JSONB' => '{"books":{}}'//json  fr array 
    ],
];

$builder->updateBatch($data, ['
id']); 

This is needed

@MrWhite can you PR this anyway
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply


Messages In This Thread
RE: Type casting in PostgreSQL with updateBatch() - by luckmoshy - 01-03-2024, 12:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB