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

Using non-ASCII in PostgreSQL user names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • 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

    Description

      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());

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes