Skip to content

zm_update-1.39.5.sql creates wrong field datatype #4754

@net2pw

Description

@net2pw

ENVIRONMENT:
ZoneMinder 1.39.3
mariadb from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
Debian trixie 13.4

BUG:
Applied sql patch zm_update-1.39.5.sql which created the following field definition:

WhatDisplay tinyint(3) unsigned NOT NULL DEFAULT 0,

That creates the following error when attempting to add a monitor :

ERR SQL-ERR 'SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'OnlyVideo' for column zm.Monitors.WhatDisplay at row 1', statement was 'INSERT INTO Monitors (Id....

It placed it in the correct field order though so the script ran all the way through.

SOLUTION:
Able to create the correct field definition WhatDisplay enum('OnlyVideo','OnlyAudioVisualization','VideoAudioVisualization') NOT NULL DEFAULT 'OnlyVideo' by modifying the column in MariaDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions