Kaydet (Commit) 03919cfa authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Use column name for getColumnLabel (firebird-sdbc).

Change-Id: I2e92c5dbdfe4cb9d8441e2d120b139fe97209d3e
üst 4f27ff91
...@@ -321,6 +321,10 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) ...@@ -321,6 +321,10 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName)
break; break;
} }
// TODO: add appropriate error
if (i > nLen)
throw SQLException();
return i; return i;
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
......
...@@ -120,8 +120,7 @@ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) ...@@ -120,8 +120,7 @@ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column)
throw(SQLException, RuntimeException) throw(SQLException, RuntimeException)
{ {
// TODO: clarify what this is -- probably not the alias // TODO: clarify what this is -- probably not the alias
(void) column; return getColumnName(column);
return OUString();
} }
OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment