diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-21 20:47:54 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-21 20:57:06 +0100 |
commit | 41e8fe179f10f224433b26daba105ee92c661ac4 (patch) | |
tree | ae55536b079e6a05208c3739ce241dc9726ccf58 /connectivity | |
parent | WaE: arrayIndexOutOfBounds (diff) | |
download | core-41e8fe179f10f224433b26daba105ee92c661ac4.tar.gz core-41e8fe179f10f224433b26daba105ee92c661ac4.zip |
WaE: remove variable scope
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx index 00c5a0c8cc48..56aed7270914 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.cxx +++ b/connectivity/source/drivers/postgresql/pq_tools.cxx @@ -862,11 +862,12 @@ void fillAttnum2attnameMap( ::rtl::OString extractSingleTableFromSelect( const OStringVector &vec ) { rtl::OString ret; - size_t token = 0; if( 0 == rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( vec[0].pData->buffer, vec[0].pData->length, "select" , 6 , 6 ) ) { + size_t token = 0; + for( token = 1; token < vec.size() ; token ++ ) { if( 0 == rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( |