Comments (4)
you sure the properties are missing and not there with value of type undefined?
I have a test that inserts 2 rows and sets 4 columns for each row. but the table holds 6 columns.
In the query output, i get all 6 columns where the other 2 are set to undefined.
You can see the test code here:
simple-oracledb/test/spec/integration-spec.js
Lines 155 to 194 in 3516aa9
from simple-oracledb.
yes it's my fault they are undefined.
is that any way to return empty string instead of undefined ?
from simple-oracledb.
oracle (and i'm not close to be an expert like the oracle team) has no concept of empty string.
when you insert empty string, it pushes null.
so when you query, you can't query by empty string, you query by is null.
so when you pull data that is 'empty string' it is basically null.
so in my layer, i always get undefined, no matter if you pushed empty string or null, because it is always stored in the db as null.
one of those strange oracle behaviors.
from simple-oracledb.
thanks your says are very useful
from simple-oracledb.
Related Issues (20)
- increase select query performance HOT 5
- is there any possiblity to add stream result on "connection.transaction" ? HOT 4
- is there any possibility to quickly gets row id that inserted newly to table ? HOT 1
- about data streaming performance HOT 7
- take clue from pg-promise for promise support HOT 7
- query function returns columns with value null as undefined HOT 3
- change object streams into text stream HOT 1
- Examples HOT 4
- TypeScript Definition Files HOT 3
- delay in fetching data issues HOT 10
- When executing batchInsert, DB errors are not available in the callback err param HOT 3
- ResultSet HOT 2
- investigate performance improvement by using new executemany HOT 10
- investigate performance improvement by using new ping instead of select from dual HOT 1
- Error: Callback not provided HOT 5
- Problem with getConnection() if server doesn't respond to validationSQL HOT 9
- bound param of value null causes error HOT 12
- DPI-1040: LOB was already closed HOT 19
- query command return only first 100 row HOT 1
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 simple-oracledb.