Skip to content

[6.18.24] Undefined offset: 0 in SqlServerProcessor.php line 24 #33485

Closed

Description

@2acode
  • Laravel Version: 6.18.24
  • PHP Version: 7.2.24
  • Database Driver & Version: FreeTDS driver v1.00.82 | Microsoft SQL Server 2008 R2 (SP3) - 10.50.6220.0 (X64)

Description:

When i try to add a new record to the database i get this message: "Undefined offset: 0 in SqlServerProcessor.php line 24".
With v6.18.23 it works properly.

Commit [6.x] SQL Server fix backport #33453

Steps To Reproduce:

Eloquent:
$myModel = new \Erp\Models\MyTable;
$myModel->field = 'text';
$myModel->save();

Query builder:
$id = DB::table('mytable')->insertGetId(['field' => 'text']);

Activity

  1. rodrigopedra commented on Jul 9, 2020

    @rodrigopedra
    Contributor

    Hi @2acode

    I visited http://www.freetds.org/ to download the database driver, but there they report the stable version is 1.2.3 and I couldn't find any reference to v7.3

    Got to that site from their github repo: https://github.com/FreeTDS/freetds

    Is you freeTDS driver from a different vendor? How can I get that version for testing?

  2. 2acode commented on Jul 9, 2020

    @2acode
    Author

    I'm sorry, my mistake:
    freetds v1.00.82
    ubuntu 18.04 LTS

  3. rodrigopedra commented on Jul 9, 2020

    @rodrigopedra
    Contributor

    Thanks, I figured out the 7.3 is the connection version, never used freeTDS before. I am trying to figure out how to solve the issue for both drivers (freeTDS and the official one) as that PR was sent to fix another issue.

  4. driesvints commented on Jul 10, 2020

    @driesvints
    Member

    We've reverted the pr that caused this. Will be released on Tuesday or maybe sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions