Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result::get<nanodbc::string>(string const& column_name) truncat to 255 bytes #343

Open
guleishanks opened this issue Jul 28, 2022 · 3 comments

Comments

@guleishanks
Copy link

Environment

  • nanodbc version:2.14.0
  • DBMS name/version:hive3.1.3
  • ODBC connection string:default
  • OS and Compiler:centos 7, gcc 8.3.1
  • CMake settings: default

Actual behavior

result::getnanodbc::string(string const& column_name),if the string type column in hive have a value of more than 255bytes,then the "result::getnanodbc::string" function will truncat to 255.

Expected behavior

"result::getnanodbc::string" function work well when more than 255 bytes.

Minimal Working Example

default

@mloskot mloskot changed the title result::get<nanodbc::string>(string const& column_name) truncat to 255bytes!!! result::get<nanodbc::string>(string const& column_name) truncat to 255 bytes Jul 28, 2022
@mloskot
Copy link
Member

mloskot commented Jul 28, 2022

DBMS name/version:hive3.1.3

What driver and its version? I've never used Hive.

ODBC connection string:default

w/ or w/o Unicode enabled?

if the string type column in hive

What type exactly? Does it happens for any text data type?

Please, try do better.

@guleishanks
Copy link
Author

the driver version is ClouderaHiveODBC-2.6.11,thanks for your suggests,I will try more to do better.

@guleishanks
Copy link
Author

DBMS name/version:hive3.1.3

What driver and its version? I've never used Hive.

ODBC connection string:default

w/ or w/o Unicode enabled?

if the string type column in hive

What type exactly? Does it happens for any text data type?

Please, try do better.

the problem has been solved , I change the hive column type from 'string' to 'varchar' , then the 'result::getnanodbc::string(string const& column_name)' function works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants