Closed GoogleCodeExporter closed 9 years ago
Original comment by bniemyjski
on 28 Jan 2009 at 10:15
Original comment by bniemyjski
on 2 Feb 2009 at 1:50
Original comment by bniemyjski
on 2 Feb 2009 at 1:50
I couldn't execute your schema script. Could you please double check it..
W (1): You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''Categories' (
'CategoryID' int(10) NOT NULL auto_increment,
'CategoryName' ' at line 1
Original comment by bniemyjski
on 2 Feb 2009 at 2:04
well i would just delete categories table, i have now gone with subsonic, as
subsonic
works with mysql
as for the script:
CREATE TABLE `Categories` (
`CategoryID` int(10) NOT NULL auto_increment,
`CategoryName` varchar(15) NOT NULL,
`Description` longtext,
`Picture` longblob,
PRIMARY KEY (`CategoryID`),
KEY `CategoryName` (`CategoryName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
there is nohing i can see wrong with that, i ran this in phpmyadmin and on
navicat
and no issues! you do know this is for MySQL database and not mssql
thanks
p.s the database is not an issue as such, the issue is that codesmith removes
the
support for mysql that nhibernate originally has.
Original comment by helenros...@googlemail.com
on 4 Feb 2009 at 9:17
Hello,
I'll try running this with another tool. I was using Aqua Data Studio to run
this
query against MySQL.
I'll update this issue when it is resolved.
"the database is not an issue as such, the issue is that codesmith removes the
support for mysql that nhibernate originally has."
I have logged this as a separate ticket.
Original comment by bniemyjski
on 4 Feb 2009 at 3:17
Original comment by shannon....@gmail.com
on 21 Apr 2009 at 3:58
Has there been any progress on this. I have been looking at codesmith +
Nhibernate +
mysql too but not having views for MySql is a big showstopper since it renders
the
templates useless:s
Original comment by mvh...@gmail.com
on 12 May 2009 at 3:49
Issue 71 has been merged into this issue.
Original comment by bniemyjski
on 2 Jul 2009 at 11:31
Hello,
I was unable to reproduce this issue, please make sure your app.config looks
something like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</prope
rty>
<property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
<property
name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property
name="connection.connection_string">Server=localhost;Database=northwind;Uid=root
;Pwd=*****;</property>
<mapping assembly="Northwind"/>
</session-factory>
</hibernate-configuration>
<!--
NHibernate.HibernateException:="" The IDbCommand and IDbConnection implementation
in the assembly MySql.Data could not be found.
Ensure that the assembly MySql.Data is located in the application directory or in
the Global Assembly Cache.
If the assembly is in the GAC, use <qualifyAssembly/> element in the application
configuration file to specify the full name of the assembly.
-->
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="MySql.Data" fullName="MySql.Data,
Version=1.0.10.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</assemblyBinding>
</runtime>
</configuration>
Thanks
-Blake Niemyjski
Original comment by bniemyjski
on 2 Jul 2009 at 2:32
Original issue reported on code.google.com by
helenros...@googlemail.com
on 28 Jan 2009 at 5:55Attachments: