Bug 50626

Summary: EDITING: Query on Mac OS X Addressbook doesn't display data for fields other than CHAR datatype
Product: LibreOffice Reporter: robert
Component: DatabaseAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: dr, iplaw67, lionel, serval2412
Version: 3.5.3 release   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Shows birthdate (German: Geburtstag) as timestamp in tables and text in queries

Description robert 2012-06-03 01:13:11 UTC
When I get a connection to the adressbook of Mac OS X I see the right date in the birthday-column. It is formatted in the table as "timestamp". Now I try to make a query in Base. Not birthday is shown. The field is formatted as text. It could not be formatted as date.
Comment 1 robert 2012-06-03 08:42:27 UTC
Created attachment 62456 [details]
Shows birthdate (German: Geburtstag) as timestamp in tables and text in queries
Comment 2 Uwe Altmann 2012-06-11 10:27:15 UTC
The data itself are present in the query - sort by date i.e. works fine. There is just no display of the values.
Formatting of the column is not possible, the only value shown in format-Dialog is "Text" and "@"
Comment 3 Alex Thurgood 2013-09-16 08:29:23 UTC
Hmm, I don't have a birthday field in my OSX address book to be able to compare...



Alex
Comment 4 Alex Thurgood 2013-09-16 08:30:50 UTC
At least, not in the French version of Contacts.app and this consequently does not appear in my LO MacAb ODB connection.

Alex
Comment 5 Alex Thurgood 2013-09-16 08:34:22 UTC
(In reply to comment #4)
> At least, not in the French version of Contacts.app and this consequently
> does not appear in my LO MacAb ODB connection.
> 
> Alex

Contacts.app V7.1(1170)
Comment 6 Alex Thurgood 2013-09-16 08:35:10 UTC
Is this some kind of personalized field that you added, or is it the default ?
Comment 7 Alex Thurgood 2013-09-16 08:44:06 UTC
OK, I could reproduce the problem with any of the Creation or Modification date fields. These are also indicated as timestamp, yet they show up blank in a query.

How to reproduce :
1) Create an ODB file that connects to the Mac addressbook using the db creation wizard.
2) Open the ODB and the GUI query designer wizard.
3) Choose FirstName, Creation and Modification as the fields for display.
4) Validate or run query - only the FirstName field shows any data despite data being available in the Table view mode.

The SQL that is displayed :

SELECT "Address Book"."Prénom" AS "Prénom", "Address Book"."Creation" AS "Creation", "Address Book"."Modification" AS "Modification" FROM "Address Book" "Address Book" 

Note that despite specifically querying on 3 fields, 2 of which are timestamp type, only one timestamp field gets displayed and no data is shown for this field.

Adding Lionel, Julien to CC.


Alex
Comment 8 Alex Thurgood 2013-09-16 08:45:11 UTC
Is this a problem with the Mork driver ?


Alex
Comment 9 Alex Thurgood 2013-09-16 08:46:52 UTC
I tested in LO 4.1.1.2

I can not create a connection to a MacAB with LO-dev 4.2, it systematically causes a crash of the whole app, but will report that separately.

Alex
Comment 10 Alex Thurgood 2013-09-16 08:53:04 UTC
It also won't show a query that uses the ABPersonFlags field.

These are defined as INT in Table design mode and yet do not show up in a query, so the problem seems to be that the Query parser or the returned display fails to handle anything other than CHAR datatype.


Alex
Comment 11 Alex Thurgood 2013-09-16 08:54:45 UTC
Changed title to reflect findings
Comment 13 Lionel Elie Mamane 2013-09-17 03:47:21 UTC
(In reply to comment #12)
> Alex: are you sure it's Mork driver which is used for Mac address book? (not
> Macab driver?)

I expect it is hte MacAB driver :)
Comment 14 Alex Thurgood 2013-09-17 08:09:25 UTC
(In reply to comment #13)

> 
> I expect it is hte MacAB driver :)


Lionel, I expect you're right, sorry :-)

Alex
Comment 15 Alex Thurgood 2015-01-03 17:41:27 UTC
Adding self to CC if not already on

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.