[ https://issues.apache.org/jira/browse/TRAFODION-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353307#comment-16353307 ]
ASF GitHub Bot commented on TRAFODION-2955: ------------------------------------------- GitHub user SuJinpei opened a pull request: https://github.com/apache/trafodion/pull/1442 [TRAFODION-2955] odb crash when executing sql statements in a file and the file contains space only line. **root cause:** original odb didn't consider blank line. **fixed by:** deal with the blank line. **verifying:** run a regression test and found this bug had been fixed and no new issues were introduced. You can merge this pull request into a Git repository by running: $ git pull https://github.com/SuJinpei/incubator-trafodion trafodion-2955 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafodion/pull/1442.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1442 ---- commit 7eecb50b7cac562b26fe1bd48ff64ee7f21a6349 Author: SuJinpei <873118042@...> Date: 2018-02-06T03:18:22Z fix trafodion-2955 ---- > odb crash when executing sql statements in a file and the file contains space > only line. > ----------------------------------------------------------------------------------------- > > Key: TRAFODION-2955 > URL: https://issues.apache.org/jira/browse/TRAFODION-2955 > Project: Apache Trafodion > Issue Type: Bug > Components: db-utility-odb > Reporter: 苏锦佩 > Assignee: 苏锦佩 > Priority: Major > > 1. create a sql file: > vi temp.sql > 1 drop table odb_copy_customer1;$ > 2 create table odb_copy_customer1(id int, name varchar(32));$ > 3 insert into odb_copy_customer1 values (1, 'hadoop');$ > 4 $ > 5 insert into odb_copy_customer1 values (2, 'hive'); $ > 2. ./odb64luo -u odb -p odb -d oracle -f temp.sql > 3. [0.0.2]--- 1 row(s) inserted in 0.021s (prep 0.000s, exec 0.021s, fetch > 0.000s/0.000s) > Segmentation fault -- This message was sent by Atlassian JIRA (v7.6.3#76005)