processone / processone/ejabberd
[FreeTDS][SQL Server]The data types text and varchar are incompatible in the equal to operator.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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