https://bugs.freedesktop.org/show_bug.cgi?id=69091

--- Comment #11 from Julien Nabet <serval2...@yahoo.fr> ---
After having added some logs, I found that the fole
"svx/source/form/dataaccessdescriptor.cxx", method "sal_Bool
ODADescriptorImpl::buildFrom( const Sequence< PropertyValue >& _rValues )"
was giving this duing my tests:

DatabaseLocation : <Any: (string)
file:///home/julien/compile-libreoffice/bugs/69091_alex_robert/Test.odb>
ActiveConnection : <Any: (com.sun.star.sdbc.XConnection) 0x68a1040>
Command : <Any: (string) Table1>
CommandType : <Any: (long) 0>

Notice: "DatabaseLocation" whereas the method  void ScDBDocFunc::UpdateImport(
const String& rTarget, const svx::ODataAccessDescriptor& rDescriptor ) in
sc/source/ui/docshell/dbdocfun.cxx contains this:
   1701     rDescriptor[svx::daDatabaseLocation]  >>= sDBName;
   1702     rDescriptor[svx::daCommand]     >>= sDBTable;
   1703     rDescriptor[svx::daCommandType] >>= nCommandType;

So after having replaced this line:
rDescriptor[svx::daDataSource]  >>= sDBName;

by this:
rDescriptor[svx::daDatabaseLocation]  >>= sDBName;

I succeeded in importing the table.

Lionel: should I gerrit submit this patch or do you think it's not the good
way?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to