yiisoft / yiisoft/yii2-queue

DB Driver queue push - SQL Server 2012

Open
#216 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

driver:db type:bug
Dominant language
PHP
Stars
1.1k
Forks
285
Avg merge
5d 3h
Merged PRs (30d)
2

Description

Channel column value overwrite and downstream error:

SQLSTATE[07002]: [Microsoft][ODBC Driver 11 for SQL Server]COUNT field incorrect or syntax error

Steps:

  1. Add queue config
  2. Create Job via gii/Job
  3. \Yii::$app->queue->push(new Job);
'queue' => [
    'class' => \yii\queue\db\Queue::class,
    'db' => 'db', // DB connection component or its config
    'tableName' => '{{%queue}}', // Table name
    'channel' => 'ingestion', // Queue channel key
    'mutex' => \yii\mutex\FileMutex::class,
],

Overwrite:
pre-channel-overwrite

channel_overwrite

Downstream:
throw_sql_error

post_overwrite_error

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 with the database queue driver and reproduce the enqueue steps using SQL Server 2012 and the shown channel configuration. Trace where the channel value is overwritten, then verify that the channel remains ingestion and that pushing the generated Job no longer produces the reported SQLSTATE[07002] error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sql
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.