MySQL Forums
Forum List  »  Connector/Node.js

Results are being padded
Posted by: Amit Arie
Date: June 24, 2018 04:49AM

Hello.
I have a table named : Device
with rows like:

last_modified: 2018-06-24 11:54:51.188021
device_id: 448
name_id: 172.18.212.54
type_id: 7
user_defined_name:
description: description...
server_state_id: 2
user_state_id: 1
l2_active: 1
external_data: null


i'm trying to extract information from this table by the node js connector,
but i'm receiving the padded results like:


[ 1529841291188,
448,
'172.18.212.5400000000000000000000000000000000000000000000000000000000000000000000000000000',
7,
' ',
'description... ',
2,
1,
1,
null ]


pay attention to the name_id column.

the type of this column is char(30).

any ideas how to fix it? thanks.

Options: ReplyQuote


Subject
Written By
Posted
Results are being padded
June 24, 2018 04:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.