Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360738
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:01:42+00:00 2026-05-18T03:01:42+00:00

This seems to have most started since I upgrade my DBIx::Class and I can’t

  • 0

This seems to have most started since I upgrade my DBIx::Class and I can’t figure out what I’m doing wrong.

Use of uninitialized value in sprintf at /opt/perl-5.10.1/lib/site_perl/5.10.1/DBIx/Class/InflateColumn/DateTime.pm line 192.
 at /opt/perl-5.10.1/lib/site_perl/5.10.1/DBIx/Class/InflateColumn/DateTime.pm line 192
    DBIx::Class::InflateColumn::DateTime::_flate_or_fallback('OpusVL::AppKitX::TelecomsBilling::Schema::Result::AsteriskCdr...', '2009-11-13 09:00:00', 'HASH(0x2a85488)', 'parse_%s') called at /opt/perl-5.10.1/lib/site_perl/5.10.1/DBIx/Class/InflateColumn/DateTime.pm line 199

My column definition in the result file is,

package Module1::Schema::Result::AsteriskCdrRecord;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime");

__PACKAGE__->table("asterisk_cdr_records");

__PACKAGE__->add_columns(
  "record_id",
  {
    data_type         => "integer",
    is_auto_increment => 1,
    is_nullable       => 0,
    sequence          => "asterisk_cdr_records_record_id_seq",
  },
  "import_id",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "line",
  { data_type => "integer", is_nullable => 0 },
  "account_ref",
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
  "b_number",
  { data_type => "varchar", is_nullable => 0, size => 80 },
  "call_start",
  { data_type => "timestamp", is_nullable => 0 },
  "call_end",
  { data_type => "timestamp", is_nullable => 0 },
  "created",
  {
    data_type     => "timestamp",
    default_value => \"current_timestamp",
    is_nullable   => 0,
    original      => { default_value => \"now()" },
  },
  "updated",
  {
    data_type     => "timestamp",
    default_value => \"current_timestamp",
    is_nullable   => 0,
    original      => { default_value => \"now()" },
  },
);
__PACKAGE__->set_primary_key("record_id");
__PACKAGE__->add_unique_constraint(
  "idx_astcdr_records_uni",
  ["account_ref", "b_number", "call_start", "call_end"],
);

__PACKAGE__->belongs_to(
  "import_id",
  "Module1::Schema::Result::AsteriskCdrImport",
  { import_id => "import_id" },
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);

# Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-10-15 10:08:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mKgpEpbGV/m/CgsjvKLzZA

__PACKAGE__->load_components(qw/TimeStamp Core/);
# Adjust some column data that was automatically output by the _create.pl script.
__PACKAGE__->add_columns
(
    # Force these to inflate via DataTime.
    "call_start",
    {
        inflate_datetime    => 1 ,
        data_type           => "timestamp without time zone",
        default_value       => undef,
        is_nullable         => 0,
        size                => 8,
    },
    "call_end",
    {
        inflate_datetime    => 1,
        data_type           => "timestamp without time zone",
        default_value       => undef,
        is_nullable         => 0,
        size                => 8,
    },
    # Add automatic date handling
    "created",
    { data_type => 'datetime', set_on_create => 1 },
    "updated",
    { data_type => 'datetime', set_on_create => 1, set_on_update => 1 },
);

The messing about doing things again after the break is to prevent the Schema::Loader from having problems with me modifying code it’s generated.

What do I need to do to prevent the warnings about the uninitialized value? This is using version 0.08124 of DBIx::Class (although I think it occurred with the version before too but I didn’t get around to investigation this problem then).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:01:43+00:00Added an answer on May 18, 2026 at 3:01 am

    A couple of things to improve the code above:

    • Remove the extra “Core” from the second load_components call, you already have it in the “extends” line.

    • The second “add_columns” call can be made shorter by using the new “+col” syntax which allows you to amend/update an existing column definition, rather than adding a whole new one, see ResultSource docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So this seems pretty basic but I can't get it to work. I have
Actually, this question seems to have two parts: How to implement pattern matching? How
This seems like a pretty softball question, but I always have a hard time
Has anyone come across this issue? Seems MS have broken it with their own
I've have searched on this and it seems to be a catch all, unfortunately
I have done a bit of research into this and it seems that the
I have searched around, and it seems that this is a limitation in MS
Anybody have a slicker way to do this? Seems like it should be easier
I have ask this kind of question before, but it seems my previous question
Since I started learning F# and OCaml last year, I've read a huge number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.