DDC-3286: Error: Expected Literal, got ')' #4067

Closed
opened 2026-01-22 14:34:36 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 29, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user bilou:

Hello there,

I'm having this bug when running a query on my view:
{quote}
[Syntax Error] line 0, col 68: Error: Expected Literal, got ')'
{quote}
And I know where it comes from and why but I couldn't fix it so far.
Actually, my query on my view has this condition
{quote}
$qb->andwhere($qb->expr()->eq(
'view.someColumn',
$qb->expr()->literal('hi')
))
{quote}
Sometimes, my views doesn't contain the column "someColumn" at all, in which case I got the bug below.
How can I do to fix it?

Originally created by @doctrinebot on GitHub (Aug 29, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user bilou: Hello there, I'm having this bug when running a query on my view: {quote} [Syntax Error] line 0, col 68: Error: Expected Literal, got ')' {quote} And I know where it comes from and why but I couldn't fix it so far. Actually, my query on my view has this condition {quote} $qb->andwhere($qb->expr()->eq( 'view.someColumn', $qb->expr()->literal('hi') )) {quote} Sometimes, my views doesn't contain the column "someColumn" at all, in which case I got the bug below. How can I do to fix it?
admin added the Bug label 2026-01-22 14:34:36 +01:00
admin closed this issue 2026-01-22 14:34:37 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 29, 2014):

Comment created by bilou:

Ooops, the problem isn't as I said I just realized it. Sorry about that

@doctrinebot commented on GitHub (Aug 29, 2014): Comment created by bilou: Ooops, the problem isn't as I said I just realized it. Sorry about that
Author
Owner

@doctrinebot commented on GitHub (Aug 30, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Aug 30, 2014): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4067