Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: postgresql enum type filter where instead of whereLike #17

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

toadfanszz
Copy link
Contributor

@toadfanszz toadfanszz commented Apr 11, 2024

This fixes

error: select * from "public"."chat_messages" where "type" ilike $1 order by "id" desc limit $2 - operator does not exist: "MessageTypes" ~~* unknown
    at Parser.parseErrorMessage (/Users/clszzyh/Documents/Projects/Mine/hopi/node_modules/pg-protocol/src/parser.ts:369:69)
    at Parser.handlePacket (/Users/clszzyh/Documents/Projects/Mine/hopi/node_modules/pg-protocol/src/parser.ts:188:21)
    at Parser.parse (/Users/clszzyh/Documents/Projects/Mine/hopi/node_modules/pg-protocol/src/parser.ts:103:30)
    at Socket.<anonymous> (/Users/clszzyh/Documents/Projects/Mine/hopi/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (node:events:519:28)
    at Socket.emit (node:domain:488:12)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

@dziraf dziraf changed the title feat: postgresql enum type filter where instead of whereLike fix: postgresql enum type filter where instead of whereLike Apr 11, 2024
@dziraf dziraf merged commit d63679e into SoftwareBrothers:main Apr 11, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 11, 2024
Copy link

🎉 This PR is included in version 2.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickgieschen
Copy link
Contributor

I think this is a regression, since it prevents all queries from using like since availableValues is always not null since it's a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants