Giter Site home page Giter Site logo

Comments (7)

aljazerzen avatar aljazerzen commented on May 28, 2024 2

I've verified that the go pq library's ping now works.

from edgedb.

Novark avatar Novark commented on May 28, 2024 1

@aljazerzen Thanks for that clarification - it sounds like the fix is to adjust how edgedb responds to no-op queries in order to match how Postgres does things, and shouldn't require any action by third-party providers.

Fingers crossed for a fix here so that #6437 can be resolved!

from edgedb.

msullivan avatar msullivan commented on May 28, 2024

(I think this seems like a server protocol issue?)

from edgedb.

fantix avatar fantix commented on May 28, 2024

Yeah, 'n' seems to be the NoData message we yield.

from edgedb.

fantix avatar fantix commented on May 28, 2024

... which we shouldn't have in the case of an empty SQL query like ;, because Postgres doesn't. I'll push a fix.

from edgedb.

Novark avatar Novark commented on May 28, 2024

@fantix Out of curiosity, would this issue affect other providers that don't use lib/pq, or is this strictly an issue with the way that lib/pq implements its Ping() functionality? In other words, is this something that third party providers should be mindful of, or is it an issue with the way the edgedb driver replies to no-op queries?

from edgedb.

aljazerzen avatar aljazerzen commented on May 28, 2024

@Novark From what I understand, this part is not really clear, because postgres docs don't specify this sufficiently. Because of that, the exact behavior is defined by "what Postgres does".

So it is up to edgedb to do "exactly what Postgres does", so any Postgres client is also compatible with edgedb.

from edgedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.