Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #5595
Closed
Open
Issue created Aug 04, 2010 by Peter Bortas@zinoOwner

Problem with SQL_C_WCHAR in ODBC module

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5595

Reported by Marcus Wellhardh wellhard@roxen.com

Queries that returns SQL_C_WCHAR does not work in Pike 7.4, example with ODBC_DEBUG enabled:

> db->query("select count(*) as antal from maincategory2");
ODBC:execute: SQLExecDirect returned 0, cols 1, rows -1
ODBC:odbc_fix_fields():
name:antal
name_len:5
sql_type:4
precision:10
scale:0
nullable:1
SQL_C_WCHAR
ODBC:fetch_row(): Field 1: WCHAR not supported.
ODBC:fetch_row(): NO DATA FOUND
(3) Result: ({ /* 1 element */
                ([ /* 2 elements */
                  ".antal":"",
                  "antal":""
                ])
            })

The same query works in Pike 7.8, it should therefore be fixable with some backporting.

Reported in [RT 15875].

Assignee
Assign to
Time tracking