• Nigel McNie's avatar
    Change to how table names are specified in SQL queries. · 250cf34d
    Nigel McNie authored
    Now, table names (and other identifiers that could be confused with SQL kewords), should be put into SQL like this:
    SELECT * FROM {artefact}
    The braces are matched and expanded by DML now to include the prefix and be properly quoted, which means that tables like 'view' and 'group' don't need renaming (and nor should they, there's little reason why we should rename tables to get around such constraints).
    This has removed a whole bunch of $prefix = ... and get_config('dbprefix') stuff, which makes things a little simpler yet again.