BUG CMSB 3.75 Generated Columns - RESOLVED

4 posts by 2 authors in: Forums > CMS Builder
Last Post: Thursday at 1:57pm   (RSS)

By kitsguru - December 15 - edited: Thursday at 1:58pm

I changed my generated column, but the output did not reflect the results. A quick check showed a discrepancy between the schema and the MySQL source.

//Schema
  'gen_links' => array(
    'order' => 53,
    'label' => 'Gen links',
    'type' => 'GeneratedColumn',
    'gcExpr' => 'CONCAT(permalink,if(LENGTH(shadow_permalink),CONCAT("<br>-> ", shadow_permalink)))',
    'gcType' => 'STORED',
    'indexed' => '0',
    'customColumnType' => 'TEXT',
  ),

//MySQL
`gen_links` text GENERATED ALWAYS AS (concat(`permalink`,`shadow_permalink`)) STORED,

I quit the browser, reopened it, and then navigated to the database editor, hoping it would detect and fix the issue. The problem remained. I tried editing the column again, but it would not update, regardless of the changes.

UPDATE:

Manually deleted the column from the database, went back to database editor, says it added column. I checked MySQL source, and the column has NOT been added.

Jeff Shields

BUG CMSB 3.75 Generated Columns

Hi Jeff,

Just posting here to let you know that I am looking into this for you and will let you know what I find out over the next day or two. 

Thanks!

Tim Hurd
Senior Web Programmer
Interactivetools.com

Thanks, Tim,

That was it. I stared at it for hours and forgot that the false condition was required.

Jeff Shields