processone / processone/ejabberd

[FreeTDS][SQL Server]The data types text and varchar are incompatible in the equal to operator.

Open
#2,979 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Erlang
Stars
6.7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Environment

Ejabberd-19.02
Microsoft SQL Server 2016 (SP1) (KB3182545) - 13.0.4001.0 (X64)
Oct 28 2016 18:17:30
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows Server 2016 Standard 6.3 (Build 14393: ) (Hypervisor)

Bug on log

[FreeTDS][SQL Server]The data types text and varchar are incompatible in the equal to operator.

It happens with "publisher text" in "pubsub_item" table.

Suggestion

All text column should be altered to varchar(250)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the database schema or migration for the pubsub_item table and inspect the publisher column, then reproduce the query failure against SQL Server through FreeTDS. The issue is done when the incompatible text/varchar comparison no longer fails and the relevant database behavior is covered or verified for the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang, sql
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.