Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
PUBLIC - Liferay Portal Community Edition
  • PUBLIC - Liferay Portal Community Edition
  • LPS-27096

Non-Liferay tables are upgraded

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.0 CE GA1, 6.1.10 EE GA1, 6.2.0 CE M2
  • Fix Version/s: 6.1.20 EE GA2, --Sprint 11/12, 6.2.0 CE M2
  • Component/s: Upgrades
  • Labels:
    • QA-R
  • Environment:
    SQL Server 2008, Tomcat
  • Branch Version/s:
    6.1.x
  • Backported to Branch:
    Committed
  • Similar Issues:
    Show 4 results 

    LPS-11178VerifyMySQL() alters non Liferay tables
    LPS-29479Non-Liferay tables upgraded on Oracle
    LPS-4817Fix incorrect upgrade tables
    LPS-27292Add create table script for Journal Folder in upgrade process

Description

If there are SQL Server System Tables present in a database, Liferay will sometimes try to upgrade the pseudo-system database table and will throw an error.

Steps to reproduce:
1. Need pseudo-system tables in the database System Tables section
This can be done by setting up some kind of system database mail.
2. Upgrade

Liferay will try to upgrade it and get a messaged like:

15:38:03,231 INFO [VerifySQLServer:130] Updating sysmail_mailitems.recipients to use nvarchar
15:38:03,262 ERROR [VerifySQLServer:88] java.sql.SQLException: Incorrect syntax near ')'.
java.sql.SQLException: Incorrect syntax near ')'.

sysmail_mailitems is not a Liferay table.

depending on the tables present, other sys tables will be upgraded.

Possible solution is to update the filter that determines which tables to alter and have it include 'AND (sysobjects.category != 2)' as pseudo-system tables have that category value.

http://social.msdn.microsoft.com/Forums/zh/sqlreplication/thread/135ec547-2214-4da3-bd42-5c458759e144

Issue Links

is duplicated by

Improvement - An improvement or enhancement to an existing feature or task. LPS-11178 VerifyMySQL() alters non Liferay tables

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
No work has yet been logged on this issue.

People

  • Assignee:
    Pani Gui
    Reporter:
    Jonas Choi
    Participants of an Issue:
    Jonas Choi, Pani Gui
Vote (0)
Watch (0)

Dates

  • Created:
    03/May/12 10:06 AM
    Updated:
    05/Jan/13 8:53 PM
    Resolved:
    03/May/12 11:31 AM
    Days since last comment:
    39 weeks, 5 days ago

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.