tdf#71251: VARCHAR max length is 32765 for Firebird
At least for Firebird 2.5 (see http://www.firebirdsql.org/en/firebird-technical-specifications/) Let's put the same for CHAR Change-Id: I4ab232689093b0418a7c1a9751685f41f2dabbf7 Reviewed-on: https://gerrit.libreoffice.org/30783 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
a615d93fa5
commit
ba8a41bac3
@ -904,7 +904,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
||||
// SQL_TEXT
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("CHAR"));
|
||||
aRow[2] = new ORowSetValueDecorator(getColumnTypeFromFBType(SQL_TEXT, 0));
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32767)); // Prevision = max length
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::FULL)); // Searchable
|
||||
@ -916,7 +916,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
||||
// SQL_VARYING
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("VARCHAR"));
|
||||
aRow[2] = new ORowSetValueDecorator(getColumnTypeFromFBType(SQL_VARYING, 0));
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32767)); // Prevision = max length
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::FULL)); // Searchable
|
||||
|
Loading…
x
Reference in New Issue
Block a user