DB Driver queue push - SQL Server 2012
Open
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:
- Add queue config
- Create Job via gii/Job
- \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:

Downstream:

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 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