[Ur] camel case for database table names
Adam Chlipala
adamc at csail.mit.edu
Sat Jan 17 21:39:33 EST 2015
Probably the underlying problem here is that MySQL is relatively
underused and thus untested with Ur/Web! If you compile with 'urweb
-debug', you will see all of the SQL strings that are being used, some
in /tmp/webapp.c. Can you tell me the right case to use everywhere? (I
/think/ case is at least being used consistently throughout the
generated code, so apparently MySQL applies a case preference
automatically somewhere. Also, I'm pretty sure the main demo has worked
with MySQL recently, so maybe some element of your configuration is
nonstandard, e.g. the filesystem?)
On 01/17/2015 02:23 PM, Kevin Johnson wrote:
> When I try to execute the examples from Gian Perrone's web tutorial, I
> get the following error:
>
> Fatal initialization error: Table 'uw_urblog_comment' does not exist.
>
> I am running mysql 5.5 on a ubuntu system.
>
> The urblog.sql defined the table as 'uw_Urblog_comment'.
>
> I have tried modifying the sql file to use 'uw_urblog_comment', but
> then the urblog.exe complains that 'uw_Urblog_comment' doesn't exist.
>
> I have to have both table names in the database. Is there perhaps an
> ignore table name case flag I am missing somewhere that everyone uses?
>
> Thank you,
>
> Kevin Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150117/98b49076/attachment.html>
More information about the Ur
mailing list