Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default [Done 2.0.0] ALTER IGNORE TABLE not handled in executeSQL function in sqlpatch.php

    ZenCart Version 1.3.8. The following line fails:

    ALTER IGNORE TABLE `test_table` ADD `test_field` INT( 11) NOT NULL DEFAULT '0';

    sqlpatch.php responds:

    1146 Table 'zencart.test_table' doesn't exist
    in:
    [ALTER IGNORE TABLE test_table ADD test_field INT(11) NOT NULL DEFAULT '0';]

    This is because I use a prefix for my tables which is not added by the executeSQL function because ALTER IGNORE TABLE is not handled.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: ALTER IGNORE TABLE not handled in executeSQL function in sqlpatch.php

    In the mean time, I suggest taking a look at this:

    http://code.google.com/p/zencart-mod.../source/browse

    sql_patch is put into a class here:
    http://code.google.com/p/zencart-mod...atch_class.php
    You can improve it by adding your own code to handle this situation.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: ALTER IGNORE TABLE not handled in executeSQL function in sqlpatch.php

    Interesting- Is that an official ZenCart development enviroment???
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: ALTER IGNORE TABLE not handled in executeSQL function in sqlpatch.php

    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Replies: 3
    Last Post: 18 Nov 2014, 09:34 PM
  2. Replies: 1
    Last Post: 18 Dec 2013, 09:20 AM
  3. sqlpatch.php page not accessible - fresh 1.5 install
    By MillenniumJim in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 5 Aug 2012, 01:34 AM
  4. [Done v1.3.9] Bug in admin\sqlpatch.sql
    By hem in forum Bug Reports
    Replies: 0
    Last Post: 26 Mar 2009, 09:18 PM

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