Comments (2)
Update:
_, err := conn.Query("set define off")
if err !=nil {
fmt.Println("error in setdefine off")
}
_, err := conn.Query(" select name from user where name = 'test & test'")
if err != nil {
fmt.Println("error in executing the query")
}
while writing this code received error from Oracle like given below:
ORA-00922: missing or invalid option
Let me know if I am missing anything.
Thanks
C.R.Bala
from go-ora.
hi @crbsram
SET DEFINE ON/OFF
is an option of SQL Plus not oracle
so your code
_, err := conn.Query(" select name from user where name = 'test & test'")
if err != nil {
fmt.Println("error in executing the query")
}
will work without SET DEFINE OFF
from go-ora.
Related Issues (20)
- float64 precision error HOT 1
- rows.Next will panic when some special data HOT 4
- add ability to export default driver registered via sql.Register HOT 2
- Oracle Connector v2 Dialer inject panic HOT 5
- Upgrade to v2.7.12+ issue HOT 5
- Long running stored procedure - socket is not connected error HOT 1
- PGA memory leak with LOBs HOT 1
- get default time zone
- different charset support? HOT 6
- Regression since v2.7.14 with some data types HOT 4
- Large output buffers + NNE results in io.EOF disconnections
- Oracle JSON type. Can we determine this type? HOT 9
- Time not in timezone HOT 7
- Named Args Being Passed Positionally HOT 2
- support arabic numbers in ar8mswin1256 charset
- Support number in string format HOT 1
- Scan and analytic queries HOT 1
- Connection state not reflective on certain error cases.
- Is there a way to init session parameters always whenever connection created HOT 5
- Prepared statement is closed if a subsequent FETCH call return zero rows HOT 2
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 go-ora.