Coder Social home page Coder Social logo

Last update breaks app about node-pg-types HOT 20 CLOSED

brianc avatar brianc commented on August 27, 2024
Last update breaks app

from node-pg-types.

Comments (20)

wejendorp avatar wejendorp commented on August 27, 2024

I think there's an issue with the parser in this release, it also breaks arrays:

TypeError: Cannot read property 'length' of undefined
  at ArrayParser.isEof (/usr/src/app/node_modules/pg/node_modules/pg-types/node_modules/postgres-array/index.js:17:38)
  at ArrayParser.parse (/usr/src/app/node_modules/pg/node_modules/pg-types/node_modules/postgres-array/index.js:53:16)
  at Object.exports.parse (/usr/src/app/node_modules/pg/node_modules/pg-types/node_modules/postgres-array/index.js:4:45)
  at Array.parseStringArray (/usr/src/app/node_modules/pg/node_modules/pg-types/lib/textParsers.js:53:12)
  at new eval (eval at <anonymous> (/usr/src/app/node_modules/pg/lib/result.js:98:20), <anonymous>:14:73)
  at [object Object].Result.parseRow (/usr/src/app/node_modules/pg/lib/result.js:61:10)
  at [object Object].Query.handleDataRow (/usr/src/app/node_modules/pg/lib/query.js:58:26)
  at [object Object].<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:108:24)
  at emitOne (events.js:77:13)
  at [object Object].emit (events.js:169:7)
  at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:109:12)
  at emitOne (events.js:77:13)
  at Socket.emit (events.js:169:7)
  at readableAddChunk (_stream_readable.js:146:16)
  at Socket.Readable.push (_stream_readable.js:110:10)
  at TCP.onread (net.js:521:20) 

from node-pg-types.

marekventur avatar marekventur commented on August 27, 2024

Same here, problems with parsing arrays.

I think the problem is here: f0c931a#diff-0c09eb4a798638a9038dbb1e605d8138R4

working on a patch right now.

from node-pg-types.

marekventur avatar marekventur commented on August 27, 2024

This seems to solve the problem for me: #35

from node-pg-types.

JulienWeiler avatar JulienWeiler commented on August 27, 2024

Same problem here. The fix by @marekventur works for me as well

from node-pg-types.

dgrelaud avatar dgrelaud commented on August 27, 2024

Same problem here. The fix works here also ;)

from node-pg-types.

Lesterpig avatar Lesterpig commented on August 27, 2024

Same here , thanks @marekventur for the patch!

from node-pg-types.

fleebzz avatar fleebzz commented on August 27, 2024

👍

from node-pg-types.

EtienneRd avatar EtienneRd commented on August 27, 2024

Same here, thanks for the patch @marekventur

from node-pg-types.

Nightmare53 avatar Nightmare53 commented on August 27, 2024

👍

from node-pg-types.

jucrouzet avatar jucrouzet commented on August 27, 2024

👍

from node-pg-types.

brianc avatar brianc commented on August 27, 2024

Thanks to the quick work of @marekventur this was fixed before I even woke up in the morning. 💃 I apologize for that one slipping through. New version with fix published at [email protected]

from node-pg-types.

cdeutsch avatar cdeutsch commented on August 27, 2024

Can we get a version bump to pg-types so we don't have to fork it and pg will start working?

from node-pg-types.

brianc avatar brianc commented on August 27, 2024

Already published the version with the fix 4 days ago.


{ name: 'pg-types',
  description: 'Query result type converters for node-postgres',
  'dist-tags': { latest: '1.9.0' },
  versions: 
   [ '1.0.0',
     '1.1.0',
     '1.2.0',
     '1.3.0',
     '1.4.0',
     '1.5.0',
     '1.6.0',
     '1.7.0',
     '1.8.0',
     '1.9.0' ],
  maintainers: 'brianc <[email protected]>',
  time: 
   { modified: '2015-07-30T13:42:36.046Z',
     created: '2014-03-15T20:34:58.912Z',
     '1.0.0': '2014-03-15T20:34:58.912Z',
     '1.1.0': '2014-05-12T13:41:28.601Z',
     '1.2.0': '2014-05-12T13:50:03.137Z',
     '1.3.0': '2014-06-04T13:55:26.129Z',
     '1.4.0': '2014-07-13T16:27:28.660Z',
     '1.5.0': '2014-10-01T18:34:03.862Z',
     '1.6.0': '2014-10-15T19:33:38.127Z',
     '1.7.0': '2015-02-21T15:57:53.587Z',
     '1.8.0': '2015-07-30T04:17:38.586Z',
     '1.9.0': '2015-07-30T13:42:36.046Z' },
  homepage: 'https://github.com/brianc/node-pg-types',
  keywords: [ 'postgres', 'PostgreSQL', 'pg' ],
  repository: 
   { type: 'git',
     url: 'git://github.com/brianc/node-pg-types.git' },
  author: 'Brian M. Carlson',
  bugs: { url: 'https://github.com/brianc/node-pg-types/issues' },
  license: 'MIT',
  readmeFilename: 'README.md',
  version: '1.9.0',
  main: 'index.js',
  scripts: { test: 'tape test/*.js | tap-spec' },
  devDependencies: { pff: '^1.0.0', 'tap-spec': '^4.0.0', tape: '^4.0.0' },
  dependencies: 
   { ap: '~0.2.0',
     'postgres-array': '~1.0.0',
     'postgres-bytea': '~1.0.0',
     'postgres-date': '~1.0.0',
     'postgres-interval': '~1.0.0' },
  gitHead: '4cbcb893747aa31028d264662637dbda5fd29d67',
  dist: 
   { shasum: 'dfea2d096f905ae438a069b2dd8ac35a613d39e7',
     tarball: 'http://registry.npmjs.org/pg-types/-/pg-types-1.9.0.tgz' },
  directories: {} }

from node-pg-types.

cdeutsch avatar cdeutsch commented on August 27, 2024

@brianc you bumped the version before you applied the fix.

do an npm install it's still broken

from node-pg-types.

cdeutsch avatar cdeutsch commented on August 27, 2024

Maybe I misread what this bug is.

But this is the fix I needed because currently val is not defined
6e0865b#diff-2f6fa2abb37db873140607da44255c50L32

from node-pg-types.

brianc avatar brianc commented on August 27, 2024

Yah different bug....I'll push a new version now.

from node-pg-types.

brianc avatar brianc commented on August 27, 2024

npm version minor -m "Bump version"
v1.10.0
git push origin master --tags
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 423 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
To [email protected]:brianc/node-pg-types.git
   9d4d6aa..b29fd45  master -> master
 * [new tag]         v1.10.0 -> v1.10.0
npm publish
+ [email protected]

from node-pg-types.

cdeutsch avatar cdeutsch commented on August 27, 2024

Working now. Thanks for the fast response!!

from node-pg-types.

brianc avatar brianc commented on August 27, 2024

No problemo! Glad it's fixed

On Mon, Aug 3, 2015 at 2:23 PM, Christopher Deutsch <
[email protected]> wrote:

Working now. Thanks for the fast response!!


Reply to this email directly or view it on GitHub
#34 (comment)
.

from node-pg-types.

ChrisHubinger avatar ChrisHubinger commented on August 27, 2024

👍 thanks

from node-pg-types.

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.