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

prefer_socket doesn't work when connect OceanBase with prisma #24010

Open
dengfuping opened this issue Apr 29, 2024 · 7 comments
Open

prefer_socket doesn't work when connect OceanBase with prisma #24010

dengfuping opened this issue Apr 29, 2024 · 7 comments
Assignees
Labels

Comments

@dengfuping
Copy link

dengfuping commented Apr 29, 2024

Bug description

Error: Schema engine error:
Unknown system variable 'socket'

image

Related prisma issue:

How to reproduce

Expected behavior

prefer_socket works and connect OceanBase with prisma should be success.

Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model User {
  id    Int     @id @default(autoincrement())
  email String  @unique
  name  String?
}
// Add your code using Prisma Client

Environment & setup

  • OS: macOS
  • Database: MySQL
  • Node.js version: v21.6.2

Prisma Version

5.12.1
@dengfuping dengfuping added the kind/bug A reported bug. label Apr 29, 2024
@SevInf
Copy link
Contributor

SevInf commented Apr 29, 2024

Hi @dengfuping
Could you fill an issue template and specify how to reproduce the issue in terms of prisma behavior? I am not sure what the screenshots of our code supposed to signify and I can very much assure you that we have not reverted one of our key components to it's 2021 state in latest Prisma version. Lockfile does not have a link to a commit in quaint repository because there is no separate quaint repository anymore - it is now part of prisma/prisma-engines.

@SevInf SevInf added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. team/schema Issue for team Schema. team/client Issue for team Client. labels Apr 29, 2024
@dengfuping dengfuping changed the title prefer_socket doesn't work anymore prefer_socket doesn't work when connect OceanBase with prisma Apr 29, 2024
@dengfuping
Copy link
Author

Hi @dengfuping Could you fill an issue template and specify how to reproduce the issue in terms of prisma behavior? I am not sure what the screenshots of our code supposed to signify and I can very much assure you that we have not reverted one of our key components to it's 2021 state in latest Prisma version. Lockfile does not have a link to a commit in quaint repository because there is no separate quaint repository anymore - it is now part of prisma/prisma-engines.

@dengfuping
Copy link
Author

@SevInf A OceanBase connection string is available for testing.

@janpio janpio added topic: mysql bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. and removed bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels Apr 30, 2024
@dengfuping
Copy link
Author

@SevInf I have sent an OceanBase connection string to your email with my mail dengfuping_private@163.com so that you can test it. Thanks a lot.

@Weakky

This comment was marked as outdated.

@janpio janpio self-assigned this May 16, 2024
@janpio janpio added bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. team/client Issue for team Client. labels May 16, 2024
@janpio
Copy link
Member

janpio commented May 16, 2024

With the provided oceanbase connection string, I can confirm that the Prisma schema engine indeed fails with Error: Unknown system variable 'socket'. I can also confirm that in a real MySQL, everything works. I think this is not a bug in Prisma, but a problem of Oceanbase that is out of our control.

@dengfuping What exactly do you refer to with prefer_socket? Where is that used or configured? Adding it to the connection string with ?prefer_socket=true or ?prefer_socket=false does not change anything.

@janpio
Copy link
Member

janpio commented May 16, 2024

Oceanbase has acknowledged this and is working on a fix: oceanbase/oceanbase#1936 (comment)

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

No branches or pull requests

4 participants