diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-21 08:29:34 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-21 11:29:44 +0100 |
commit | a22f4351cc5db1be2278813aef78a7920452d2fe (patch) | |
tree | 0e71dfbd105486df0f41e174c64b71c47064ca26 | |
parent | e0157dfec5d0aed888fc214abc878881789511fb (diff) |
Sanitize primary key names too. (firebird-sdbc)
Change-Id: I28b195280a02883c3bf597f4ded470ced0b74f14
-rw-r--r-- | connectivity/source/drivers/firebird/DatabaseMetaData.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx index 9e0411663192..2aa1bc89f8fd 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx @@ -1534,14 +1534,14 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( // 3. Table Name if (xRs->getRow() == 1) // Table name doesn't change, so only retrieve once { - aCurrentRow[3] = new ORowSetValueDecorator(xRow->getString(1)); + aCurrentRow[3] = new ORowSetValueDecorator(sanitizeIdentifier(xRow->getString(1))); } // 4. Column Name - aCurrentRow[4] = new ORowSetValueDecorator(xRow->getString(2)); + aCurrentRow[4] = new ORowSetValueDecorator(sanitizeIdentifier(xRow->getString(2))); // 5. KEY_SEQ (which key in the sequence) aCurrentRow[5] = new ORowSetValueDecorator(xRow->getShort(3)); // 6. Primary Key Name - aCurrentRow[6] = new ORowSetValueDecorator(xRow->getString(4)); + aCurrentRow[6] = new ORowSetValueDecorator(sanitizeIdentifier(xRow->getString(4))); aResults.push_back(aCurrentRow); } |