Firebird and codeignter

2

Someone knows exactly what this error means in firebird

  

This column can not be updated because it is derived from an SQL   function or expression.Attempted update of read-only column.

In codeigniter:

  

A PHP Error was encountered

     

Severity: Warning

     

Message: ibase_query (): attempted update of read-only column

     

Filename: firebird / firebird_driver.php

     

Line Number: 607

In line 607 it is a function insert_blob (), where it converts string to blob. I'm not going to put the query because I can not change it, so it's not the case that I write the sql, but if someone knows exactly what it means, I'll thank them. It happens to me when I try to insert data into a certain table.

Greetings and I hope you can help me

    
asked by Nahuel Jakobson 19.05.2016 в 21:00
source

1 answer

0

The official documentation says the following:

  

This error message may appear when you try to update a   calculated column. Since such a column is calculated, you can not   Write the values directly in it. If you really need a   specific value, it is necessary to change the computerized source.

Which means that in the database that column may be used by some trigger, so if you want to update that column you should deactivate that trigger and then update the column.

In the following link you can read more information:

link

    
answered by 19.05.2016 в 23:03