Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PDO::PARAM_NULL to resolve to SQLT_CHR #6

Merged
merged 1 commit into from
Jun 19, 2014
Merged

Change PDO::PARAM_NULL to resolve to SQLT_CHR #6

merged 1 commit into from
Jun 19, 2014

Conversation

AdamWillden
Copy link
Contributor

When inserting NULLs for columns on & off in the definition below the value entered was a string of "0"

schema::create('on_off_messages', function (Blueprint $table) {
    $table->increments('id', 'device_status_bits_pk');
    $table->string('on', 64)->nullable();
    $table->string('off', 64)->nullable();
});

This change allows NULLs to be entered. It appears that NULLs are still entered into integer fields correctly too, though I would advise this is tested in your environment too!

When inserting NULLs for columns on & off in the definition below the value entered was a string of "0"

```php
schema::create('on_off_messages', function (Blueprint $table) {
    $table->increments('id', 'device_status_bits_pk');
    $table->string('on', 64)->nullable();
    $table->string('off', 64)->nullable();
});
```

This change allows NULLs to be entered. It appears that NULLs are still entered into integer fields correctly too, though I would advise this is tested in your environment too!
yajra added a commit that referenced this pull request Jun 19, 2014
Change PDO::PARAM_NULL to resolve to SQLT_CHR
@yajra yajra merged commit a0fb74d into yajra:master Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants