Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@antonioribeiro

Description

@antonioribeiro
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.