Note that there are some explanatory texts on larger screens.

plurals
  1. USDerek MacDonald
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COWas hoping to avoid editing the core library since this will affect sites across multiple servers, but I guess this is the best to be done at the moment. Later in the day I also discovered there's a similar problem with MySQL's `FIELD()` in an ORDER BY. e.g., `$status_ids = array(STATUS_PROCESSING, STATUS_AWAITING_SHIPPING, STATUS_SHIPPED); $statuses->order_by("FIELD(id, '" . implode("', '", $status_ids) . "')")` generates SQL ``ORDER BY FIELD(id, `'4'`, `'13'`, `'6')` `` For a spreading ORM, building non-typical queries is a bit of a rabble.
      singulars
    2. CODiscovered H2's "DB2 compatibility mode" is nothing but: http://derekmd.com/2010/10/h2-and-db2-incompatibility-mode/ I ended up moving all my tests over to DBUnit, creating a new populate.xml by hand that used test data separate from our development insertion SQL script. In the larger scheme, it's not ideal but at least we now have an efficient test suite. Thanks.
      singulars
    3. COThanks. I actually found placing a `<filter class="org.apache.log4j.varia.StringMatchFilter">` inside the `<appender name="SQL" class="org.jboss.logging.appender.DailyRollingFileAppender">` works to filter out any strings containing "Returning", "returning", "/* select", or "/* criteria query */ select". The latest log4j 1.2.10 also supports regex, so you can use: `<param name="RegexToMatch" value="([rR]eturning (null|'[^']+') as column: )|(/\* criteria query \*/ select)|(/* select )" />` although parameter bindings for SELECT queries are still logged.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload