Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

    Default v2.0.0 syntax error updating zen_project_version_history with MariaDB

    Test installation, ZC 2.0.0, no plugins PHP 8.2 and 8.3, importing database from ZC158a.

    When performing a test update to v2.0.0 by importing my v1.5.8a database from production
    I receive the error
    Code:
    [08-Apr-2024 06:15:40 UTC] MySQL error 1064 encountered during zc_install:
    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 '' at line 1
    INSERT INTO zen_project_version_history (project_version_key, project_version_major, project_version_minor, project_version_patch, project_version_date_applied, project_version_comment)
    The command in question is from lines 282 - 284 in "zc_install\sql\updates\mysql_upgrade_zencart_200.sql"
    Code:
    INSERT INTO project_version_history (project_version_key, project_version_major, project_version_minor, project_version_patch, project_version_date_applied, project_version_comment)
    SELECT project_version_key, project_version_major, project_version_minor, project_version_patch1 as project_version_patch, project_version_date_applied, project_version_comment
    FROM project_version;
    If I run the SQL command from admin | Install SQL patches against the zc158a database before I upgrade with zc_install it works.
    If I run the command in PhpMyAdmin it works.

    It doesn't matter whether I use a database prefix or not.
    I have checked the script for non-ansi chars and reentered the statement.

    I have to assume that it is some obscure MariaDB bug.
    Last edited by OldNGrey; 9 Apr 2024 at 06:32 AM. Reason: typo
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,699
    Plugin Contributions
    9

    Default Re: v2.0.0 syntax error updating zen_project_version_history with MariaDB

    Quote Originally Posted by OldNGrey View Post
    ...
    I have to assume that it is some obscure MariaDB bug.
    i just think that is a bad assumption...

    it works from phpMyAdmin; it works from the install mysql patch; it does not work from the installer...

    its rather curious...

    it happened to me as well. but i have not been able to figure it out as of yet... i may never... other fish to fry...

    but i'm doubtful on your assumption.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. v155 Error after upgrading to MSQL to MariaDB 10.3, how do I see error messages
    By patrioticflags in forum General Questions
    Replies: 10
    Last Post: 13 Jun 2019, 07:20 PM
  2. v155 ZENCART 1.5.5e work with MariaDB 10.2?
    By e-standard in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 21 Dec 2017, 07:26 PM
  3. Error with new install 1.3.9d 1064 error in SQL syntax
    By Joseph M in forum Installing on a Linux/Unix Server
    Replies: 21
    Last Post: 28 Jun 2010, 06:36 PM
  4. SQL Syntax Error when updating Account Information
    By charagg in forum Bug Reports
    Replies: 1
    Last Post: 25 Dec 2009, 03:16 AM
  5. SQL Syntax error: check for right syntax to use near '000000
    By gabyone in forum General Questions
    Replies: 2
    Last Post: 9 Feb 2008, 08:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR