Welcome Guest, Not a member yet? Register   Sign In
Querybuilder select() parsing problems
#2

(This post was last modified: 04-29-2024, 03:30 AM by kenjis.)

Cannot reproduce.

PHP Code:
<?php

namespace App\Controllers;

class 
Home extends BaseController
{
    public function index(): string
    
{
        $db = \Config\Database::connect();
        $builder $db->table('sales_items');
        $builder->select("name, sales.sale_id AS sale_id, sales.foo AS subtotal"false);
        return $sub_query $builder->getCompiledSelect(false);
    }


I see:
Code:
SELECT name, sales.sale_id AS sale_id, sales.foo AS subtotal FROM `sales_items`
or
Code:
SELECT name, sales.sale_id AS sale_id, sales.foo AS subtotal FROM `db_sales_items`
Reply


Messages In This Thread
RE: Querybuilder select() parsing problems - by kenjis - 04-29-2024, 03:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB