Re: [Oscarmcmaster-devel] missing column "date" in log table?
open source web-based Electronic Medical Record (EMR) system
Brought to you by:
davidhcchan,
jaygallagher
From: Marc D. <ma...@md...> - 2011-06-28 02:59:23
|
ya, i missed it . they meant to use OscarLog that pmm_log table should be phased out...or atleast renamed. Marc On Mon, Jun 27, 2011 at 10:27 PM, Ted <r6s...@gm...> wrote: > I think it's at least got the wrong column name and missing the init / > update scripts. > > I probably shouldn't have approved this commit but in the current situation > my reviewing has not been as thorough as it should be. > > > > On Tue, Jun 28, 2011 at 12:25 PM, Marc Dumontier <ma...@md...>wrote: > >> ok, will take a look at it to see what's up >> >> >> >> On Mon, Jun 27, 2011 at 10:23 PM, Ted <r6s...@gm...> wrote: >> >>> I think that came in with one of your olis commits, can you check if that >>> field is really required? >>> >>> we can remove it otherwise, it looks like it's in error at any rate. >>> >>> >>> On Tue, Jun 28, 2011 at 10:08 AM, Marc Dumontier <ma...@md...>wrote: >>> >>>> maybe something weird because date is a reserved keyword..not sure. >>>> >>>> >>>> On Mon, Jun 27, 2011 at 7:06 PM, Annie Zhou <ann...@ya...>wrote: >>>> >>>>> I got error when run oscar(trunk) and clicked on client name to go to >>>>> caisi program module page: >>>>> >>>>> java.sql.SQLException: null, message from server: "Unknown column 'date' in 'field list'" >>>>> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1905) >>>>> com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203) >>>>> com.mysql.jdbc.Connection.execSQL(Connection.java:2090) >>>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1680) >>>>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1527) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) >>>>> >>>>> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94) >>>>> org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57) >>>>> org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666) >>>>> org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71) >>>>> org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321) >>>>> org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204) >>>>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210) >>>>> org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195) >>>>> org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93) >>>>> org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562) >>>>> org.hibernate.impl.SessionImpl.save(SessionImpl.java:550) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.hibernate.impl.SessionImpl.save(SessionImpl.java:546) >>>>> org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:693) >>>>> >>>>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) >>>>> org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) >>>>> org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:690) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.oscarehr.PMmodule.dao.LogDAO.saveLog(LogDAO.java:31) >>>>> org.oscarehr.PMmodule.service.LogManager.log(LogManager.java:56) >>>>> >>>>> Is there a column "date" in log table? >>>>> Here is the line in log.hbm.xml >>>>> <property column="date" name="data" type="string" /> >>>>> Is it correct or a typo here? >>>>> anyone knows? >>>>> >>>>> Thanks >>>>> >>>>> Annie >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, >>>>> security >>>>> threats, fraudulent activity, and more. Splunk takes this data and >>>>> makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> Oscarmcmaster-devel mailing list >>>>> Osc...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel >>>>> >>>>> >>>> >>>> >>>> -- >>>> Marc Dumontier >>>> 519-584-5601 >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Oscarmcmaster-devel mailing list >>>> Osc...@li... >>>> https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel >>>> >>>> >>> >>> >>> -- >>> Ted. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Oscarmcmaster-devel mailing list >>> Osc...@li... >>> https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel >>> >>> >> >> >> -- >> Marc Dumontier >> 519-584-5601 >> >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Oscarmcmaster-devel mailing list >> Osc...@li... >> https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel >> >> > > > -- > Ted. > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Oscarmcmaster-devel mailing list > Osc...@li... > https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel > > -- Marc Dumontier 519-584-5601 |