Book a Demo

Author Topic: Difference between Package and View  (Read 4116 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Difference between Package and View
« on: July 27, 2014, 07:37:47 pm »
I use the built-in search for getting checked-out packages for me.  

It works fine for checked out packages, as opposed to checked out view;
a checked out view doesn't appear in the search result unless there is currently  also a checked out package in the model.

 Have someone encountered this bug?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between Package and View
« Reply #1 on: July 28, 2014, 09:08:25 am »
Could you post your SQL? I don't think there's a big difference between view and package.

q.
« Last Edit: July 28, 2014, 09:08:42 am by qwerty »

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Difference between Package and View
« Reply #2 on: July 28, 2014, 06:54:03 pm »
Quote
Could you post your SQL? I don't think there's a big difference between view and package.

q.

The SQL I copies from the built-in search for checked out packages:  

Code: [Select]
SELECT
t_object.ea_guid AS CLASSGUID, t_object.Object_Type AS CLASSTYPE,t_object.Name AS Object, t_object.Object_Type AS [Type], t_object.Stereotype, t_object.Scope,t_object.Status, t_object.Phase, t_object.CreatedDate, t_object.ModifiedDate
FROM
t_object, t_package
WHERE
t_object.Object_Type='Package'
AND
#DB=Other#t_object.PDATA1 = cstr(t_package.Package_ID)#DB=Other#
#DB=ORACLE#t_object.PDATA1 = to_char(t_package.Package_ID) #DB=ORACLE#
#DB=OPENEDGE#cast(t_object.PDATA1 as char(25)) = cast(t_package.Package_ID as char(25))#DB=OPENEDGE#
#DB=ASA#t_object.PDATA1 = cast(t_package.Package_ID as char)#DB=ASA#
#DB=SQLSVR#t_object.PDATA1 = cast(t_package.Package_ID as char(25))#DB=SQLSVR#
#DB=MYSQL#t_object.PDATA1 = t_package.Package_ID#DB=MYSQL#
#DB=POSTGRES#t_package.Package_ID = t_object.PDATA1::text::int#DB=POSTGRES#
AND
t_package.PackageFlags LIKE '#WC#VCCFG=#WC#CheckedOutTo=#UserName##WC#'

Something wrong?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between Package and View
« Reply #3 on: July 29, 2014, 06:15:05 am »
I just tried that query and it returned package as well as view. Which RDBMS are you using?

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Difference between Package and View
« Reply #4 on: July 29, 2014, 06:31:11 pm »
Quote
I just tried that query and it returned package as well as view. Which RDBMS are you using?

q.

The model is Oracle based.
Did you try the query in case there are only view checked out, with no package?



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between Package and View
« Reply #5 on: July 29, 2014, 07:06:14 pm »
Yes (once you said it). And the result is still correct. I don't have Oracle (just using EAP) so someone else would need to verify that. Anyhow, I would not see why Oracle would not work wrongly as opposed to other RDBMS. Maybe you could send a bug report. I suppose there is another reason for the behavior. Sparx support is quite helpful when it comes to such issues.

q.