Git Product home page Git Product logo

Comments (7)

nene avatar nene commented on June 24, 2024

For me it looks like it has not :)

While sql-formatter recognizes numbers in SQL, it treats the values as strings, never converting them to numbers. So the lost of precision is unlikely to be caused by sql-formatter.

If you still do believe it's caused by sql-formatter, please post the exact input SQL and the faulty output SQL that sql-formatter produces.

You can try out the offending SQL in here: https://zeroturnaround.github.io/sql-formatter/

from sql-formatter.

 avatar commented on June 24, 2024

I don't have these experience in that area, therefore it was a guess. But I will look.

from sql-formatter.

 avatar commented on June 24, 2024

input sql would be this

select
  *
from
  `images`
  inner join `users` on `images`.`userid` = `users`.`id`
  inner join `captions` on `images`.`id` = `captions`.`id`
where
  `images`.`type` = "standard_resolution"
  and `images`.`id` = 1900866953279686114
limit
  1

output sql would be this

select
  *
from
  `images`
  inner join `users` on `images`.`userid` = `users`.`id`
  inner join `captions` on `images`.`id` = `captions`.`id`
where
  `images`.`type` = "standard_resolution"
  and `images`.`id` = 1900866953279686100
limit
  1

from sql-formatter.

nene avatar nene commented on June 24, 2024

Sorry, but I'm unable to reproduce this output. Did you try it in here:

Are you perhaps not using the latest sql-formatter version?

from sql-formatter.

 avatar commented on June 24, 2024

the input sql is how it would look like. the output sql is what i get as result in laravel telescope.

laravel telescope is using version 2.3.1 https://github.com/laravel/telescope/blob/6d8646b692c4202e2abc2f425fe38cf4ffe4feff/package.json#L23

from sql-formatter.

nene avatar nene commented on June 24, 2024

Still, I see no demonstration of a bug in sql-formatter. I can't help with issues in Lavarel Telescope.

from sql-formatter.

 avatar commented on June 24, 2024

Ok no problem. As I said, it was a guess of mine.

from sql-formatter.

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.