Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12894

Using non-ASCII in PostgreSQL user names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.6.3, 4.7.0
    • Core: Plugins, SQL Support
    • None
    • PosgreSQL 8.4.4, initdb -E UNICODE, Windows 7 Pro Rus, VS 2008 SP1 Rus, Qt 4.6.3/4.7.0b2

      When connecting to PostgreSQL Server with user name with non-ASCII characters (иванов for example), connection fails.

      For resolution I've changed line in qsql_psql.cpp from

      d->connection = PQconnectdb(connectString.toLocal8Bit().constData());
      to
      d->connection = PQconnectdb(connectString.toUtf8().constData());

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mabrand Mark Brand
            romank Roman Kiseliov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes