Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: type vrs engine

  1. #1
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,614
    Thanks
    312
    Thanked 34 Times in 33 Posts

    type vrs engine

    When did querys change from
    TYPE=MyISAM to ENGINE=MyISAM ?

    do i need to provide legacy code for both ways depending on the version installed on?

    thanks

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    29,353
    Thanks
    83
    Thanked 4,904 Times in 4,865 Posts
    No currently supported version of MySQL allows TYPE=.

    Version 4.1 (remember: it is *NOT* supported) allowed *either* TYPE= or ENGINE=.

    I don't know when ENGINE= was first allowed, but apparently it was even before 4.1.

    Given that it's unlikely that all of your queries are going to work with any version older than 5.1, I would think there is no point in worrying about TYPE=. After all, there are SO MANY features supported in 5.x compared to earlier versions that it would be hard to be backward compatible unless all your queries are really really simplistic.
    Be yourself. No one else is as qualified.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •