Skip to content

[Bug]: MariaDB 11.7.2 causing SQL error with not null longtext column (recognize app) #51596

Open
@marcelklehr

Description

@marcelklehr

⚠️ This issue respects the following points: ⚠️

Bug description

when using recognize app with MariaDB 11.7.2 in Nextcloud 31 you get an SQL error.

Steps to reproduce

  1. Install latest MariaDB (not supported yet, but will eventually become supported I believe)
  2. Install Nextcloud 31
  3. Install recognize App
  4. SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LONGTEXT NOT NULL, cluster_id BIGINT DEFAULT NULL, threshold DOUBLE PRECISION...' at line 1

In recognize (I'm the author and maintainer), I'm using the following model code to access the db: https://github.com/nextcloud/recognize/blob/main/lib/Db/FaceDetection.php#L65

And the following code for the migration that seems to offend: https://github.com/nextcloud/recognize/blob/main/lib/Migration/Version003001000Date20221017094721.php#L31

Expected behavior

It should just work as it did in previous MariaDB versions.

Nextcloud Server version

31

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions