Comments (7)
Please try the master branch, it has some changes which may help.
j [email protected] ezt írta (időpont: 2015. nov. 27., P 1:32):
Dear,
I have an table with field of varchar2(1024) , with valid spaces ASCII 32
to rigth.When I fetch records , the field value has loss trailing spaces?
Exists an option for disable this one?
Thanks,
JMfragment code:
"
stmtQry, err := testSes.Prep("SELECT field1 FROM table", ora.OraS )
stmtQry.Cfg().Rset.SetVarchar(ora.OraS)
...
rset, err := stmtQry.Qry()
......
for rset.Next() {fmt.Println( len(rset.Row[0].(ora.String).Value) ) msgStream <- rset.Row[0].(ora.String).Value
}
"
—
Reply to this email directly or view it on GitHub
https://github.com/rana/ora/issues/53.
from ora.
Yesterday, before of test my code, I do :
go get -u -v gopkg.in/rana/ora.v3
It's fine?
Enviado desde mi BlackBerry de Movistar
-----Original Message-----
From: Tamás Gulácsi [email protected]
Date: Thu, 26 Nov 2015 21:25:16
To: rana/[email protected]
Reply-To: rana/ora [email protected]
Cc: [email protected]
Subject: Re: [ora] How not trailling rigth space in VARCHAR2 field ... (#53)
Please try the master branch, it has some changes which may help.
j [email protected] ezt írta (időpont: 2015. nov. 27., P 1:32):
Dear,
I have an table with field of varchar2(1024) , with valid spaces ASCII 32
to rigth.When I fetch records , the field value has loss trailing spaces?
Exists an option for disable this one?
Thanks,
JMfragment code:
"
stmtQry, err := testSes.Prep("SELECT field1 FROM table", ora.OraS )
stmtQry.Cfg().Rset.SetVarchar(ora.OraS)
...
rset, err := stmtQry.Qry()
......
for rset.Next() {fmt.Println( len(rset.Row[0].(ora.String).Value) ) msgStream <- rset.Row[0].(ora.String).Value
}
"
—
Reply to this email directly or view it on GitHub
https://github.com/rana/ora/issues/53.
Reply to this email directly or view it on GitHub:
#53 (comment)
from ora.
That pulls the "v3" branch, you need the "master":
cd $GOPATH/src/gopkg.in/rana/ora.v3 && git branch -m master v3 && git
checkout -b master origin/master && git pull
j [email protected] ezt írta (időpont: 2015. nov. 27., P, 14:39):
Yesterday, before of test my code, I do :
go get -u -v gopkg.in/rana/ora.v3
It's fine?
Enviado desde mi BlackBerry de Movistar
-----Original Message-----
From: Tamás Gulácsi [email protected]
Date: Thu, 26 Nov 2015 21:25:16
To: rana/[email protected]
Reply-To: rana/ora [email protected]
Cc: [email protected]
Subject: Re: [ora] How not trailling rigth space in VARCHAR2 field ...
(#53)Please try the master branch, it has some changes which may help.
j [email protected] ezt írta (időpont: 2015. nov. 27., P 1:32):
Dear,
I have an table with field of varchar2(1024) , with valid spaces ASCII
32
to rigth.When I fetch records , the field value has loss trailing spaces?
Exists an option for disable this one?
Thanks,
JMfragment code:
"
stmtQry, err := testSes.Prep("SELECT field1 FROM table", ora.OraS )
stmtQry.Cfg().Rset.SetVarchar(ora.OraS)
...
rset, err := stmtQry.Qry()
......
for rset.Next() {fmt.Println( len(rset.Row[0].(ora.String).Value) )
msgStream <- rset.Row[0].(ora.String).Value
}"
—
Reply to this email directly or view it on GitHub
https://github.com/rana/ora/issues/53.
Reply to this email directly or view it on GitHub:
https://github.com/rana/ora/issues/53#issuecomment-160046307—
Reply to this email directly or view it on GitHub
https://github.com/rana/ora/issues/53#issuecomment-160141479.
from ora.
OK.
I've followed these steps, one by one. But I'm still with the problem.
My field1 is varchar2 (1024), it contains text of the form:
"XXXXXXXXXXXXXXXXXSSSSSSSSSSSSS"
where 'X' is any character and 'S' are spaces.
the fetch operation get 'XXXXXXXXXXXXXXXXX' only, :(
I can not anticipate the effective length of the field.
Thank you.
from ora.
Ok, I have a reproduction: 314b3f2
from ora.
Wow, quite strange.
"SELECT 'spaces ' FROM DUAL" works (see TestSpacesDual)!
BUT
"INSERT 'spaces ' INTO tbl" binds the unaltered value (see TestSpacesTbl) but the value in the table is without spaces (the "only space" case errs out as cannot insert NULL into the field)!
from ora.
It's great, thank's you.
from ora.
Related Issues (20)
- How to get the result of a function HOT 5
- Package 'oci8' has no Name: field HOT 4
- LastInsertId is returning 0, when using database/sql package with oracle driver
- exemple
- Getting error in the.Next() method HOT 5
- sql db.Exec fail to insert "" to blob,runtime error: index out of range HOT 2
- Dependencies HOT 3
- When run the program get That can not find bind point of OCIBindByPos2 in the dynamic link library HOT 8
- My code makes de select and prints <nil> for each row HOT 5
- Build in Bitbucket Pipelines HOT 2
- Stmt.exeC Env.ociError ORA-03135: connection lost contact\nProcess ID: 61366\nSession ID: 2867 Serial number: 6006 HOT 3
- Error during go get HOT 6
- Cannot build with instaclient 11.1 HOT 3
- Data Cartridge Development support HOT 3
- Support AQ HOT 1
- time.Time shows <nil> even if the value is present in the DB HOT 7
- remove lock on break HOT 1
- I am geting BLOB fields with extra content HOT 1
- v4.1.15 Data chaos bug HOT 1
- MAC OS ARM64
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 ora.