Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI mode not supported #7383

Closed
pma-import opened this issue Oct 2, 2003 · 14 comments
Closed

ANSI mode not supported #7383

pma-import opened this issue Oct 2, 2003 · 14 comments
Assignees
Labels
Milestone

Comments

@pma-import
Copy link

@pma-import pma-import commented Oct 2, 2003

The error below is received when I am in ANSI mode. If
I turn ANSI mode off I do NOT receive the error. It
appears as though the queries in server_privileges.php
do not take into account the fact that you are using
MySQL in ANSI mode.

Warning: Your privilege table structure seem to be older
than this MySQL version!
Please run the script mysql_fix_privilege_tables that
should be included in your MySQL server distribution to
solve this problem!

Notice: Undefined index: Password in C:\phpMyAdmin-
2.5.3\server_privileges.php on line 997

Notice: Undefined index: Password in C:\phpMyAdmin-
2.5.3\server_privileges.php on line 997

Notice: Undefined index: Password in C:\phpMyAdmin-
2.5.3\server_privileges.php on line 997

Notice: Undefined index: Password in C:\phpMyAdmin-
2.5.3\server_privileges.php on line 997

- Original URL: https://sourceforge.net/p/phpmyadmin/bugs/1013/
- Original author: kirbinator
- Found in version: Latest_Git

@pma-import
Copy link
Author

@pma-import pma-import commented Oct 31, 2003

- assigned_to: rabus —> nobody

- Original author: lem9

@pma-import
Copy link
Author

@pma-import pma-import commented Nov 4, 2003

- summary: ANSI mode error when setting privledges —> ANSI mode not supported
- priority: 5 —> 2
- milestone: 333987 —> Latest_Git
- labels: 509098 —> Incompatibillity with new MySQL releases
- status: open —> open-later

- Original author: garvinhicking

@pma-import
Copy link
Author

@pma-import pma-import commented Nov 4, 2003

Logged In: YES
user_id=473563

When you use sql_mode=ANSI, all quote-characters (‘"’) can
no longer be used for string identification. See
https://sourceforge.net/tracker/index.php?func=detail&aid=816858&group_id=23067&atid=377408

That means, phpMyAdmin is in many, many occasions not
compatible with ANSI mode.

Reading through that, I can’t find a replacement for ‘"’ in
ANSI-mode, so we can’t just switch to that.

I will add this as a known limitation to phpMyAdmin and
suppose this won’t be fixed any time soon. Or, maybe one is
volunteering to put some effort into this compatibility
issue. :-)

- Original author: garvinhicking

@pma-import
Copy link
Author

@pma-import pma-import commented Nov 5, 2003

server_privileges.php

- Original author: kirbinator
- Attachment: http://sourceforge.net/p/phpmyadmin/bugs/discuss/thread/425dc3b2/1579/attachment/serverprivileges.php

@pma-import
Copy link
Author

@pma-import pma-import commented Nov 5, 2003

Logged In: YES
user_id=879201

Dear phpMyAdmin staff,

I took you up on the offer of volunteering to put some effort
into this compatiability issue. I have attached
server_privileges.php with my changes… which by the way is
to change all double quotes in SQL statements (") with a
backslash single quote (\’). This works in any SQL mode.

This is a relatively easy fix and probably should be applied to
the rest of the code base for phpMyAdmin. If you have any
questions, please feel free to ask.

Sincerely,

Jeffrey Kirby

P.S. Kevin Grittner also contributed to this code fix.

- Original author: kirbinator

@pma-import
Copy link
Author

@pma-import pma-import commented Nov 5, 2003

- assigned_to: nobody —> garvinhicking
- status: open-later —> open-remind

- Original author: kirbinator

@pma-import
Copy link
Author

@pma-import pma-import commented May 3, 2004

- assigned_to: garvinhicking —> nobody

- Original author: garvinhicking

@pma-import
Copy link
Author

@pma-import pma-import commented Oct 19, 2004

- assigned_to: nobody —> nijel

- Original author: nijel

@pma-import
Copy link
Author

@pma-import pma-import commented Oct 19, 2004

- status: open-remind —> open-fixed

- Original author: nijel

@pma-import
Copy link
Author

@pma-import pma-import commented Oct 19, 2004

- summary: ANSI mode not supported —> (in 2.6.1) ANSI mode not supported
- priority: 2 —> 1

- Original author: nijel

@pma-import
Copy link
Author

@pma-import pma-import commented Oct 19, 2004

Logged In: YES
user_id=192186

I converted all problematic places I found to use ’, if you
find any further errors, please report.

- Original author: nijel

@pma-import
Copy link
Author

@pma-import pma-import commented Jan 24, 2005

- status: open-fixed —> closed-fixed

- Original author: nijel

@pma-import
Copy link
Author

@pma-import pma-import commented Jun 11, 2013

  • Status: closed-fixed --> fixed

  • Original author: nijel
@lailabeauty
Copy link

@lailabeauty lailabeauty commented May 11, 2019

ANSI mode not supported
thanks, this helped me

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
@nijel @pma-import @lailabeauty and others