Comments (6)
Appears the YAML parse function exists only for compatibility reasons
from libpq.jl.
Looking at Julia 1.0:
parse(::Type{T}, s::AbstractString; base) where T<:Integer in Base at parse.jl:217
Maybe the answer is to add ::AbstractString
into the YAML function
from libpq.jl.
@omus so does the PR being accepted to YAML.jl close this issue?
from libpq.jl.
I don't think so. I still get the ambiguous method error:
post-transition: Error During Test
Got an exception of type CapturedException outside of a @test
MethodError: parse(::Type{Int32}, ::LibPQ.PQValue{0x00000017}) is ambiguous. Candidates:
parse(T::Type{#s3113} where #s3113<:Integer, s) in YAML at /root/.julia/v0.6/YAML/src/YAML.jl:23
parse(::Type{T}, pqv::LibPQ.PQValue) where T in LibPQ at /root/.julia/v0.6/LibPQ/src/parsing.jl:110
Possible fix, define
parse(::Type{T<:Integer}, ::LibPQ.PQValue)
(::LibPQ.#parse_type#40{DataType})(::LibPQ.PQValue{0x00000017}) at /root/.julia/v0.6/LibPQ/src/parsing.jl:353
streamfrom(::LibPQ.Result, ::Type{DataStreams.Data.Field}, ::Type{Int32}, ::Int64, ::Int64) at
...
from libpq.jl.
@eperim Do you have YAML master
branch checked out?
from libpq.jl.
I can confirm that adding using YAML
in the LibPQ.jl tests fail with YAML v0.3.1 but do pass on the master
version.
from libpq.jl.
Related Issues (20)
- Memory Leak? HOT 4
- LibPQ and local peer trust ("ident") HOT 4
- All rational numbers are parsed as Decimals.Decimal instead of Float HOT 3
- Trying to implement large object support HOT 4
- Large select queries running 5-10x slower than with psql HOT 7
- Support UUIDs with binary_format=true HOT 1
- Make Tables.rowtable(result) as fast as Tables.rowtable(Tables.columntable(result))
- `tryparse` Inexact Error HOT 5
- Docs links return 404 HOT 3
- Using array_agg results in a string HOT 2
- I install LibPQ but test fails. HOT 1
- Guess when there is no server running in tests and suggest users install one
- Multiple `async_execute`s may not always execute in sequence?
- `execute` and `async_execute` exception handling difference
- `LibPQ`.`async_execute`'s overhead is around 3ms HOT 2
- Add functions for closing prepared statements (requires PostgreSQL 17 release and corresponding libpq_jll)
- Can't suppress LibPQ's error output HOT 2
- Conflict with Dates.jl HOT 1
- Can't store Vector{UInt8} as expected in bytea
- New Release?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpq.jl.