Skip to content

[Request] Create a DB:: unprepared command #53

Closed
@antonioribeiro

Description

@antonioribeiro

I was trying to create a trigger using migrations after trying everything I discovered that all DB:: commands are under a "prepare" condition and some MySQL commands cannot run, actually if you are using DB::exec you don't have to prepare at all if you don't have variables to resolve.

This is what I was trying to do: http://paste.laravel.com/fIa

This is the error MySQL gives: [PDOException] SQLSTATE[HY000]: General error: 2030 This command is not supported in the prepared statement protocol yet

I think it would be great to have an unprepared statement on DB::

Using getPDO made it work fine for me: http://paste.laravel.com/fIh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions